diff options
author | Ito Hiroyuki <ZXB01226@nifty.com> | 2010-07-19 12:25:53 +0000 |
---|---|---|
committer | Ito Hiroyuki <ZXB01226@nifty.com> | 2010-07-19 12:25:53 +0000 |
commit | 3b6bf23b5a4305fcb62856d92db00749b3dc3d40 (patch) | |
tree | 4a1bc063d2aa3d933817a849a5a767d110aedb79 /rc.c | |
parent | * [w3m-dev 04321] Re: w3m's bugs from bugs.debian.org (diff) | |
download | w3m-3b6bf23b5a4305fcb62856d92db00749b3dc3d40.tar.gz w3m-3b6bf23b5a4305fcb62856d92db00749b3dc3d40.zip |
* [w3m-dev 04321] Re: w3m's bugs from bugs.debian.org
* http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=537706#10
* rc.c (interpret_rc): check line->length before call Strchop().
Diffstat (limited to '')
-rw-r--r-- | rc.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: rc.c,v 1.109 2010/07/19 12:19:54 htrb Exp $ */ +/* $Id: rc.c,v 1.110 2010/07/19 12:25:53 htrb Exp $ */ /* * Initialization file etc. */ @@ -1071,9 +1071,11 @@ interpret_rc(FILE * f) for (;;) { line = Strfgets(f); - Strchop(line); - if (line->length == 0) + if (line->length == 0) /* end of file */ break; + Strchop(line); + if (line->length == 0) /* blank line */ + continue; Strremovefirstspaces(line); if (line->ptr[0] == '#') /* comment */ continue; |