* [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().
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2010-07-19 d+w3m@vdr.jp
|
||||||
|
|
||||||
|
* [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().
|
||||||
|
|
||||||
2010-07-19 d+w3m@vdr.jp
|
2010-07-19 d+w3m@vdr.jp
|
||||||
|
|
||||||
* [w3m-dev 04321] Re: w3m's bugs from bugs.debian.org
|
* [w3m-dev 04321] Re: w3m's bugs from bugs.debian.org
|
||||||
@@ -9005,4 +9011,4 @@ a * [w3m-dev 03276] compile error on EWS4800
|
|||||||
* release-0-2-1
|
* release-0-2-1
|
||||||
* import w3m-0.2.1
|
* import w3m-0.2.1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.1012 2010/07/19 12:19:54 htrb Exp $
|
$Id: ChangeLog,v 1.1013 2010/07/19 12:25:53 htrb Exp $
|
||||||
|
|||||||
@@ -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.
|
* Initialization file etc.
|
||||||
*/
|
*/
|
||||||
@@ -1071,9 +1071,11 @@ interpret_rc(FILE * f)
|
|||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
line = Strfgets(f);
|
line = Strfgets(f);
|
||||||
Strchop(line);
|
if (line->length == 0) /* end of file */
|
||||||
if (line->length == 0)
|
|
||||||
break;
|
break;
|
||||||
|
Strchop(line);
|
||||||
|
if (line->length == 0) /* blank line */
|
||||||
|
continue;
|
||||||
Strremovefirstspaces(line);
|
Strremovefirstspaces(line);
|
||||||
if (line->ptr[0] == '#') /* comment */
|
if (line->ptr[0] == '#') /* comment */
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user