diff --git a/src/pulsecore/conf-parser.c b/src/pulsecore/conf-parser.c index 0c7444d71..062fa8e5d 100644 --- a/src/pulsecore/conf-parser.c +++ b/src/pulsecore/conf-parser.c @@ -185,6 +185,9 @@ int pa_config_parse(const char *filename, FILE *f, const pa_config_item *t, pa_p while (!feof(f)) { if (!fgets(state.buf, sizeof(state.buf), f)) { + if (feof(f)) + break; + pa_log_warn("Failed to read configuration file '%s': %s", filename, pa_cstrerror(errno)); goto finish; }