projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for reading SPSS/PC+ system files.
[pspp]
/
src
/
language
/
dictionary
/
apply-dictionary.c
diff --git
a/src/language/dictionary/apply-dictionary.c
b/src/language/dictionary/apply-dictionary.c
index 05143fcd580cf034c1ebce3006e932ca456eb843..c949510f659f4e47159143b1750af7e7f7866d40 100644
(file)
--- 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;
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);
fh_unref (handle);
- if (
dict == NULL
)
+ if (
!reader
)
return CMD_FAILURE;
casereader_destroy (reader);
return CMD_FAILURE;
casereader_destroy (reader);