diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-11 12:01:46 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-11 12:01:46 +0800 |
commit | 5576dd55cfc4a6843341f3cc8c2293a616889bf0 (patch) | |
tree | 2da89249705ca444688e5f1ea18a7a2d619358a2 /mbbsd/mbbsd.c | |
parent | 3e4ba33de1435641e65f4a2fd8f4f02c3949c3da (diff) | |
download | pttbbs-5576dd55cfc4a6843341f3cc8c2293a616889bf0.tar pttbbs-5576dd55cfc4a6843341f3cc8c2293a616889bf0.tar.gz pttbbs-5576dd55cfc4a6843341f3cc8c2293a616889bf0.tar.bz2 pttbbs-5576dd55cfc4a6843341f3cc8c2293a616889bf0.tar.lz pttbbs-5576dd55cfc4a6843341f3cc8c2293a616889bf0.tar.xz pttbbs-5576dd55cfc4a6843341f3cc8c2293a616889bf0.tar.zst pttbbs-5576dd55cfc4a6843341f3cc8c2293a616889bf0.zip |
- eliminate compile warnings
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3991 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r-- | mbbsd/mbbsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 5dbfe95f..8f62ad7e 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1819,7 +1819,7 @@ static int check_banip(char *host) { unsigned int thisip = 0; char *ptr, *myhost = strdup(host); - char *strtok_pos; + char *strtok_pos = NULL; for( ptr = strtok_r(myhost, ".", &strtok_pos) ; ptr != NULL ; ptr = strtok_r(NULL, ".", &strtok_pos) ) thisip = thisip * 256 + atoi(ptr); |