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 /
|
* 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>
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user