Minor optimization

This commit is contained in:
Pierre Pronchery 2015-10-08 19:02:10 +02:00
parent 32a3de7d5b
commit 3b2bc58ecd

View File

@ -256,7 +256,7 @@ int config_load(Config * config, char const * filename)
string_delete(section);
string_delete(variable);
string_delete(value);
if(!feof(fp))
if(c != EOF)
ret = error_set_code(1, "%s: %s%zd", filename, "Syntax error"
" at line ", line);
if(fclose(fp) != 0)