Avoid implicit conversion of integers / pointers to booleans.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user