diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-08-31 14:38:40 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-08-31 14:38:40 +0800 |
commit | a6c9d9736edf6cabf09713291e98af8a4016d983 (patch) | |
tree | d2a65e70d6c16f65d7d0d593d01baa81b3500ef1 /mbbsd | |
parent | 2ec27c126a71b6bedda7d77562dd3e96ff8a36b6 (diff) | |
download | pttbbs-a6c9d9736edf6cabf09713291e98af8a4016d983.tar pttbbs-a6c9d9736edf6cabf09713291e98af8a4016d983.tar.gz pttbbs-a6c9d9736edf6cabf09713291e98af8a4016d983.tar.bz2 pttbbs-a6c9d9736edf6cabf09713291e98af8a4016d983.tar.lz pttbbs-a6c9d9736edf6cabf09713291e98af8a4016d983.tar.xz pttbbs-a6c9d9736edf6cabf09713291e98af8a4016d983.tar.zst pttbbs-a6c9d9736edf6cabf09713291e98af8a4016d983.zip |
uninitialized value...
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3404 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/stuff.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) { |