summaryrefslogtreecommitdiffstats
path: root/mbbsd/stuff.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-05 01:13:35 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-05 01:13:35 +0800
commit57bb5ce6886b3e2b19a6376e0173a83efc8a1648 (patch)
treed24654c2ca0591ac2967f114e527fc86c29cb8f2 /mbbsd/stuff.c
parentacea666b1d2913702055324e5a63f35e18d78250 (diff)
downloadpttbbs-57bb5ce6886b3e2b19a6376e0173a83efc8a1648.tar
pttbbs-57bb5ce6886b3e2b19a6376e0173a83efc8a1648.tar.gz
pttbbs-57bb5ce6886b3e2b19a6376e0173a83efc8a1648.tar.bz2
pttbbs-57bb5ce6886b3e2b19a6376e0173a83efc8a1648.tar.lz
pttbbs-57bb5ce6886b3e2b19a6376e0173a83efc8a1648.tar.xz
pttbbs-57bb5ce6886b3e2b19a6376e0173a83efc8a1648.tar.zst
pttbbs-57bb5ce6886b3e2b19a6376e0173a83efc8a1648.zip
make compiler happy
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2985 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/stuff.c')
-rw-r--r--mbbsd/stuff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c
index 7d54efcf..090b3704 100644
--- a/mbbsd/stuff.c
+++ b/mbbsd/stuff.c
@@ -969,7 +969,7 @@ int tobind(const char * host, int port)
(char *)&val, sizeof(val));
bzero(&servaddr, sizeof(servaddr));
servaddr.sin_family = AF_INET;
- if (!host || host[0] == NULL)
+ if (host == NULL || host[0] == 0)
servaddr.sin_addr.s_addr = htonl(INADDR_ANY);
else if (inet_aton(host, &servaddr.sin_addr) == 0) {
perror("inet_aton()");