aboutsummaryrefslogtreecommitdiffstats
path: root/url.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-01-06 15:49:28 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-01-06 15:49:28 +0000
commitb5462e19366cd6c4379a8b8e84b5046e76a12c6d (patch)
tree99d228ac35ca69f99f60384525931ce12b05b839 /url.c
parentfix indent (diff)
downloadw3m-b5462e19366cd6c4379a8b8e84b5046e76a12c6d.tar.gz
w3m-b5462e19366cd6c4379a8b8e84b5046e76a12c6d.zip
fix build warnings
* url.c (parseURL2): fix comparison between pointer and integer * news.c (readNewsgroup): variable `scheme',`group',`list' might be clobbered by `longjmp' or `vfork' From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to 'url.c')
-rw-r--r--url.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/url.c b/url.c
index e0a6794..d039fe5 100644
--- a/url.c
+++ b/url.c
@@ -1,4 +1,4 @@
-/* $Id: url.c,v 1.63 2003/01/06 15:37:00 ukai Exp $ */
+/* $Id: url.c,v 1.64 2003/01/06 15:49:29 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include <sys/socket.h>
@@ -989,7 +989,7 @@ parseURL2(char *url, ParsedURL *pu, ParsedURL *current)
current->scheme == SCM_NNTP_GROUP)) {
if (pu->host == NULL)
pu->host = current->host;
- if (pu->port == NULL)
+ if (pu->port == 0)
pu->port = current->port;
}
return;