* (see COPYING for full license text)
*/
-#include <ctype.h>
-#include <stdio.h>
+#include <git-compat-util.h>
#include "configfile.h"
static int next_char(FILE *f)
/* 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;