[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r8435: Initialize global variable __GLOBAL_SOCKET_ENV_ to 0, so it (bsockets/trunk)
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] r8435: Initialize global variable __GLOBAL_SOCKET_ENV_ to 0, so it (bsockets/trunk)
- From: nickm@xxxxxxxx
- Date: Tue, 19 Sep 2006 20:26:35 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Tue, 19 Sep 2006 20:26:43 -0400
- Reply-to: or-talk@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
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 ) {