From a6c9d9736edf6cabf09713291e98af8a4016d983 Mon Sep 17 00:00:00 2001 From: wens Date: Thu, 31 Aug 2006 06:38:40 +0000 Subject: uninitialized value... git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3404 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/stuff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mbbsd/stuff.c') diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c index ee645421..57ab3f77 100644 --- a/mbbsd/stuff.c +++ b/mbbsd/stuff.c @@ -1038,7 +1038,7 @@ time4_t time4(time4_t *ptr) #ifdef OUTTACACHE int tobind(const char * host, int port) { - int sockfd, val; + int sockfd, val = 1; struct sockaddr_in servaddr; if( (sockfd = socket(AF_INET, SOCK_STREAM, 0)) < 0 ) { -- cgit v1.2.3