X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fdictionary%2Fapply-dictionary.c;fp=src%2Flanguage%2Fdictionary%2Fapply-dictionary.c;h=c949510f659f4e47159143b1750af7e7f7866d40;hb=63c7521729b947ace9e192dff9330813ecfb5812;hp=05143fcd580cf034c1ebce3006e932ca456eb843;hpb=7eeac30440dc09a42ee869b69263a8879bbb3ff8;p=pspp diff --git a/src/language/dictionary/apply-dictionary.c b/src/language/dictionary/apply-dictionary.c index 05143fcd58..c949510f65 100644 --- a/src/language/dictionary/apply-dictionary.c +++ b/src/language/dictionary/apply-dictionary.c @@ -53,9 +53,9 @@ cmd_apply_dictionary (struct lexer *lexer, struct dataset *ds) handle = fh_parse (lexer, FH_REF_FILE, dataset_session (ds)); if (!handle) return CMD_FAILURE; - reader = any_reader_open (handle, NULL, &dict); + reader = any_reader_open_and_decode (handle, NULL, &dict, NULL); fh_unref (handle); - if (dict == NULL) + if (!reader) return CMD_FAILURE; casereader_destroy (reader);