diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-01-06 15:49:28 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-01-06 15:49:28 +0000 |
commit | b5462e19366cd6c4379a8b8e84b5046e76a12c6d (patch) | |
tree | 99d228ac35ca69f99f60384525931ce12b05b839 /news.c | |
parent | fix indent (diff) | |
download | w3m-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 'news.c')
-rw-r--r-- | news.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: news.c,v 1.7 2003/01/06 15:37:50 ukai Exp $ */ +/* $Id: news.c,v 1.8 2003/01/06 15:49:29 ukai Exp $ */ #include "fm.h" #include "myctype.h" #include <stdio.h> @@ -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'; |