mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 14:40:51 +01:00
Paranoid bulletproofing for exit code
svn:r2537
This commit is contained in:
parent
f619c4603e
commit
b0afd91afe
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
[AC_RUN_IFELSE([AC_LANG_SOURCE(
|
||||||
[[#include <stdlib.h>
|
[[#include <stdlib.h>
|
||||||
int main () { char *p1,*p2; p1=NULL; memset(&p2,0,sizeof(p2));
|
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=yes],
|
||||||
[tor_cv_null_is_zero=no],
|
[tor_cv_null_is_zero=no],
|
||||||
[tor_cv_null_is_zero=cross])])
|
[tor_cv_null_is_zero=cross])])
|
||||||
|
|
Loading…
Add table
Reference in a new issue