--- a/project_files/frontlib/model/mapcfg.c Sun Aug 12 23:51:36 2012 +0200
+++ b/project_files/frontlib/model/mapcfg.c Wed Aug 15 23:40:10 2012 +0200
@@ -46,11 +46,13 @@
if(!log_e_if(!fgets(out->theme, sizeof(out->theme), file), "Error reading theme from %s", path)) {
removeNewline(out->theme);
char buf[64];
- if(!log_e_if(!fgets(buf, sizeof(buf), file), "Error reading hoglimit from %s", path)) {
+ if(fgets(buf, sizeof(buf), file)) {
removeNewline(buf);
errno = 0;
out->hogLimit = strtol(buf, NULL, 10);
result = !log_e_if(errno, "Invalid hoglimit in %s: %i", path, buf);
+ } else {
+ result = 0;
}
}
fclose(file);