Avoid implicit conversion of integers / pointers to booleans.

This commit is contained in:
nekral-guest 2008-05-25 20:41:13 +00:00
parent de9bee0354
commit cb8d416b37
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
* libmisc/xmalloc.c: Avoid implicit conversion of integers / * libmisc/xmalloc.c: Avoid implicit conversion of integers /
pointers to booleans. pointers to booleans.
* libmisc/xgetXXbyYY.c: Likewise.
2008-05-25 Nicolas François <nicolas.francois@centraliens.net> 2008-05-25 Nicolas François <nicolas.francois@centraliens.net>

View File

@ -91,7 +91,7 @@ LOOKUP_TYPE *XFUNCTION_NAME (ARG_TYPE ARG_NAME)
errno = 0; errno = 0;
status = REENTRANT_NAME(ARG_NAME, result, buffer, status = REENTRANT_NAME(ARG_NAME, result, buffer,
length, &resbuf); length, &resbuf);
if (!status && (resbuf == result)) { if ((0 ==status) && (resbuf == result)) {
/* Build a result structure that can be freed by /* Build a result structure that can be freed by
* the shadow *_free functions. */ * the shadow *_free functions. */
LOOKUP_TYPE *ret_result = DUP_FUNCTION(result); LOOKUP_TYPE *ret_result = DUP_FUNCTION(result);