Avoid implicit conversion of integers / pointers to booleans.
This commit is contained in:
parent
de9bee0354
commit
cb8d416b37
@ -2,6 +2,7 @@
|
||||
|
||||
* libmisc/xmalloc.c: Avoid implicit conversion of integers /
|
||||
pointers to booleans.
|
||||
* libmisc/xgetXXbyYY.c: Likewise.
|
||||
|
||||
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
|
@ -91,7 +91,7 @@ LOOKUP_TYPE *XFUNCTION_NAME (ARG_TYPE ARG_NAME)
|
||||
errno = 0;
|
||||
status = REENTRANT_NAME(ARG_NAME, result, buffer,
|
||||
length, &resbuf);
|
||||
if (!status && (resbuf == result)) {
|
||||
if ((0 ==status) && (resbuf == result)) {
|
||||
/* Build a result structure that can be freed by
|
||||
* the shadow *_free functions. */
|
||||
LOOKUP_TYPE *ret_result = DUP_FUNCTION(result);
|
||||
|
Loading…
Reference in New Issue
Block a user