X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire.c;h=d36a802cb0e828a9a9d7c46c81aa312d8e5958d2;hb=62215e63f11b18112899541b29b3151e25f7eb6e;hp=b1551fbb15f137f81cc548cc48f3f49a80f70fb3;hpb=fe76b9c2c49a0dd33aad5dfe3f03a056e6f96c21;p=pspp-builds.git diff --git a/src/ui/gui/psppire.c b/src/ui/gui/psppire.c index b1551fbb..d36a802c 100644 --- a/src/ui/gui/psppire.c +++ b/src/ui/gui/psppire.c @@ -263,7 +263,13 @@ parse_non_options (int key, char *arg, struct argp_state *state) if (pfm_detect (fp)) { ds_init_cstr (&syntax, "IMPORT FILE="); + goto close; } + + fclose (fp); + msg (ME, _("%s is neither a system nor portable file"), arg); + break; + close: fclose (fp);