aboutsummaryrefslogtreecommitdiffstats
path: root/rc.c
diff options
context:
space:
mode:
Diffstat (limited to 'rc.c')
-rw-r--r--rc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/rc.c b/rc.c
index c8daa4c..ab2b2c5 100644
--- a/rc.c
+++ b/rc.c
@@ -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;