X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire.c;h=d36a802cb0e828a9a9d7c46c81aa312d8e5958d2;hb=67ab7839678c0f8aa12459ce5a585a5636f20196;hp=b1551fbb15f137f81cc548cc48f3f49a80f70fb3;hpb=fe76b9c2c49a0dd33aad5dfe3f03a056e6f96c21;p=pspp diff --git a/src/ui/gui/psppire.c b/src/ui/gui/psppire.c index b1551fbb15..d36a802cb0 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);