From: Peter Verthez Date: Sat, 21 Sep 2002 20:14:46 +0000 (+0000) Subject: Close outfile *after* the last output is done... X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=ece84266e52251b4b5fe056efa54cc5d9c80cb24;p=gedcom-parse.git Close outfile *after* the last output is done... --- diff --git a/t/standalone.c b/t/standalone.c index 3f149c0..fdf2661 100644 --- a/t/standalone.c +++ b/t/standalone.c @@ -313,13 +313,12 @@ int main(int argc, char* argv[]) output(0, "\n=== Parsing file %s\n", file_name); result |= gedcom_parse_file(file_name); } - fclose(outfile); if (result == 0) { output(1, "Parse succeeded\n"); - return 0; } else { output(1, "Parse failed\n"); - return 1; - } + } + fclose(outfile); + return result; }