]> git.cameronkatri.com Git - cgit.git/blobdiff - configfile.c
cgitrc.5: document new signature notes
[cgit.git] / configfile.c
index 5b0d880cb7d2d1da755b2f4bc621a6c460ef4df0..e0391091e147891ca2639142a7b29180030db125 100644 (file)
@@ -39,7 +39,9 @@ static int read_config_line(FILE *f, struct strbuf *name, struct strbuf *value)
 
        /* Skip comments and preceding spaces. */
        for(;;) {
-               if (c == '#' || c == ';')
+               if (c == EOF)
+                       return 0;
+               else if (c == '#' || c == ';')
                        skip_line(f);
                else if (!isspace(c))
                        break;