X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=common%2Fconfig.c;h=e2a23955e65b71869e0415d1f09a8f84a1d9b689;hb=a5365695a4e491413eeeca87243f776857d80913;hp=a1808ee7091e75be4a34992b3209e29a9df8475d;hpb=450dab6fe58cfb6320b3f17211919029be679fa2;p=libpicofe.git diff --git a/common/config.c b/common/config.c index a1808ee..e2a2395 100644 --- a/common/config.c +++ b/common/config.c @@ -353,7 +353,7 @@ int config_writelrom(const char *fname) int size; FILE *f; - if (strlen(lastRomFile) == 0) return 0; + if (strlen(lastRomFile) == 0) return -1; f = fopen(fname, "r"); if (f != NULL) @@ -694,7 +694,7 @@ int config_readsect(const char *fname, const char *section) FILE *f; f = fopen(fname, "r"); - if (f == NULL) return 0; + if (f == NULL) return -1; if (section != NULL) {