Avoid implicit conversion of integers / pointers to booleans.

This commit is contained in:
nekral-guest 2008-05-25 20:39:31 +00:00
parent ae75a8c0c1
commit de9bee0354
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/xmalloc.c: Avoid implicit conversion of integers /
pointers to booleans.
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
* configure.in, lib/defines.h: Allow usage of booleans in the

View File

@ -52,7 +52,7 @@ char *xmalloc (size_t size)
char *ptr;
ptr = (char *) malloc (size);
if (!ptr && size) {
if ((NULL == ptr) && (0 != size)) {
fprintf (stderr, _("malloc(%d) failed\n"), (int) size);
exit (13);
}