[or-cvs] r8435: Initialize global variable __GLOBAL_SOCKET_ENV_ to 0, so it (bsockets/trunk)
nickm at seul.org
nickm at seul.org
Wed Sep 20 00:26:35 UTC 2006
Author: nickm
Date: 2006-09-19 20:26:35 -0400 (Tue, 19 Sep 2006)
New Revision: 8435
Modified:
bsockets/trunk/socket.c
Log:
Initialize global variable __GLOBAL_SOCKET_ENV_ to 0, so it will be easier to tell if we forget to init.
Modified: bsockets/trunk/socket.c
===================================================================
--- bsockets/trunk/socket.c 2006-09-19 23:55:35 UTC (rev 8434)
+++ bsockets/trunk/socket.c 2006-09-20 00:26:35 UTC (rev 8435)
@@ -16,7 +16,7 @@
#include "callback.h"
-struct socket_env *__GLOBAL_BSOCKET_ENV_;
+struct socket_env *__GLOBAL_BSOCKET_ENV_ = NULL;
//support only turning off and on socket blocking, will add more features as needed
int fcntl_win32(int fd, int cmd, long args, struct socket_env *env ) {
More information about the tor-commits
mailing list