Terminal interface: Remove support for the ncurses library.
[pspp] / src / language / stats / graph.c
index 65c03bbf79dc61985332b2f2123198a45d33a2ef..da74afdef4e82c4eb8784bbb538b8757af8df3a1 100644 (file)
@@ -245,6 +245,8 @@ parse_function (struct lexer *lexer, struct graph *graph)
       for (v = 0; v < ag_func[i].arity; ++v)
        {
          graph->dep_vars[v] = parse_variable (lexer, graph->dict);
+         if (! graph->dep_vars[v])
+           goto error;
        }
 
       if (!lex_force_match (lexer, T_RPAREN))