aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-10-16 20:37:54 +0000
committerNick Mathewson <nickm@torproject.org>2004-10-16 20:37:54 +0000
commitb0afd91afec362e3edc58d1928d2a63bcb3097e8 (patch)
tree22f6b1c48a37297a4cae600b6896f99f94f5570d
parentf619c4603ea7c4dcd66fe67ce6ff76502af11865 (diff)
downloadtor-b0afd91afec362e3edc58d1928d2a63bcb3097e8.tar
tor-b0afd91afec362e3edc58d1928d2a63bcb3097e8.tar.gz
Paranoid bulletproofing for exit code
svn:r2537
-rw-r--r--configure.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 0cf8a7d53..36f5501d0 100644
--- a/configure.in
+++ b/configure.in
@@ -200,7 +200,7 @@ AC_CACHE_CHECK([whether memset(0) sets pointers to NULL], tor_cv_null_is_zero,
[AC_RUN_IFELSE([AC_LANG_SOURCE(
[[#include <stdlib.h>
int main () { char *p1,*p2; p1=NULL; memset(&p2,0,sizeof(p2));
-return memcmp(&p1,&p2,sizeof(char*)); }]])],
+return memcmp(&p1,&p2,sizeof(char*))?1:0; }]])],
[tor_cv_null_is_zero=yes],
[tor_cv_null_is_zero=no],
[tor_cv_null_is_zero=cross])])