projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed a bug where INSERT would crash when an unterminated string was given.
[pspp]
/
src
/
language
/
utilities
/
include.c
diff --git
a/src/language/utilities/include.c
b/src/language/utilities/include.c
index 2c0f3ae8cc74c9bf530f14013fcaf2423f7baba8..473f67513072485ce153c753f80134fcfa13fed3 100644
(file)
--- a/
src/language/utilities/include.c
+++ b/
src/language/utilities/include.c
@@
-62,6
+62,9
@@
do_insert (struct lexer *lexer, struct dataset *ds, enum variant variant)
return CMD_FAILURE;
relative_name = utf8_to_filename (lex_tokcstr (lexer));
+ if (NULL == relative_name)
+ return CMD_FAILURE;
+
filename = include_path_search (relative_name);
free (relative_name);