[or-cvs] Add an autoconf test to make sure that memset(&ptr, 0, size...
Nick Mathewson
nickm at seul.org
Sat Oct 16 20:26:15 UTC 2004
Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv15448/src/common
Modified Files:
util.h
Log Message:
Add an autoconf test to make sure that memset(&ptr, 0, sizeof(ptr)) and ptr=NULL are equivalent
Index: util.h
===================================================================
RCS file: /home/or/cvsroot/src/common/util.h,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -d -r1.100 -r1.101
--- util.h 15 Oct 2004 20:49:31 -0000 1.100
+++ util.h 16 Oct 2004 20:26:12 -0000 1.101
@@ -20,6 +20,10 @@
#include <time.h>
#endif
+#ifndef NULL_REP_IS_ZERO_BYTES
+#error "It seems your platform does not represent NULL as zero. We can't cope."
+#endif
+
#if _MSC_VER > 1300
#include <winsock2.h>
#include <ws2tcpip.h>
More information about the tor-commits
mailing list