commit 8de1c829b3afd11eae9a89c443d914ff26deb033
parent 53005e61a25f68262d61ba0e08ce568288719842
Author: ukai <ukai>
Date: Mon, 6 Jan 2003 15:49:28 +0000
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:
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,9 @@
+2003-01-07 Fumitoshi UKAI <ukai@debian.or.jp>
+
+ * 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'
+
2003-01-07 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03610] Re: news:<newsgroup>
diff --git a/news.c b/news.c
@@ -311,7 +311,8 @@ readNewsgroup(ParsedURL *pu)
Str tmp;
URLFile f;
Buffer *buf;
- char *scheme, *group, *qgroup, *list, *p, *q, *s, *t, *n;
+ char *qgroup, *p, *q, *s, *t, *n;
+ char * volatile scheme, * volatile group, * volatile list;
int status, i, first, last;
volatile int flag = 0, start = 0, end = 0;
char code = '\0';
diff --git a/url.c b/url.c
@@ -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;