Use calloc instead of malloc and memset.
authorjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 25 Mar 2012 05:48:49 +0000 (05:48 +0000)
committerjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 25 Mar 2012 05:48:49 +0000 (05:48 +0000)
commit33123ed70fd7dc8e09a235177ed054dd2d9ad585
tree685cb6240f35fb0058480526772367ef510d1cba
parent3414a8bceab3dcebe4a6951abdb85df3ff2f9be0
Use calloc instead of malloc and memset.

2012-03-25  Janne Blomqvist  <jb@gcc.gnu.org>

* runtime/memory.c (xcalloc): New function.
* libgfortran.h (xcalloc): New prototype.
* io/list_read.c (push_char): Use xcalloc instead of get_mem and
memset.
(l_push_char): Likewise.
* io/unit.c (insert_unit): Likewise.
(get_internal_unit): Likewise.
* io/unix.c (open_internal): Likewise.
(open_internal4): Likewise.
(fd_to_stream): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185773 138bc75d-0d04-0410-961f-82ee72b054a4
libgfortran/ChangeLog
libgfortran/io/list_read.c
libgfortran/io/unit.c
libgfortran/io/unix.c
libgfortran/libgfortran.h
libgfortran/runtime/memory.c