[Sysfence-commit] sysfence xalloc.c,1.2,1.3
Status: Alpha
Brought to you by:
emes
|
From: Michal S. <em...@us...> - 2004-03-29 13:59:24
|
Update of /cvsroot/sysfence/sysfence In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25808 Modified Files: xalloc.c Log Message: - realloc() with NULL pointer is equivalent to malloc() [thx, mirek] Index: xalloc.c =================================================================== RCS file: /cvsroot/sysfence/sysfence/xalloc.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- xalloc.c 1 Mar 2004 17:28:10 -0000 1.2 +++ xalloc.c 29 Mar 2004 13:47:55 -0000 1.3 @@ -22,8 +22,7 @@ { void *res; - if (ptr == NULL) res = (void *) malloc (size); - else res = (void *) realloc (ptr, size); + res = (void *) realloc (ptr, size); if (res != NULL) return res; bail_out (EXIT_MEM, NULL); |