do_rawlog(LT_ERR, "Reading %s", conf);
}
- fgets(tbuf1, BUFFER_LEN, fp);
- while (!feof(fp)) {
-
- p = tbuf1;
-
+ p = fgets(tbuf1, BUFFER_LEN, fp);
+ while (p && !feof(fp)) {
if (*p == '#') {
/* comment line */
- fgets(tbuf1, BUFFER_LEN, fp);
+ p = fgets(tbuf1, BUFFER_LEN, fp);
continue;
}
/* this is a real line. Strip the end-of-line and characters following it.
} else
config_set(p, q, 0, restrictions);
}
- fgets(tbuf1, BUFFER_LEN, fp);
+ p = fgets(tbuf1, BUFFER_LEN, fp);
}
/* Warn about any config options that aren't overridden by the