PsppireDataStore (myreversefunc): Insert variables if attempting to access variable...
[pspp] / src / language / utilities / include.c
index 2c0f3ae8cc74c9bf530f14013fcaf2423f7baba8..ecb33b27670826fd8fa7ae25f1bf435b09ed0f13 100644 (file)
@@ -61,7 +61,10 @@ do_insert (struct lexer *lexer, struct dataset *ds, enum variant variant)
   if (!lex_force_string_or_id (lexer))
     return CMD_FAILURE;
 
-  relative_name = utf8_to_filename (lex_tokcstr (lexer)); 
+  relative_name = utf8_to_filename (lex_tokcstr (lexer));
+  if (NULL == relative_name)
+    return CMD_FAILURE;
+
   filename = include_path_search (relative_name);
   free (relative_name);