Browse Source

fix segfault

txlyre 3 days ago
parent
commit
f09caa1532
1 changed files with 3 additions and 0 deletions
  1. 3 0
      jk.c

+ 3 - 0
jk.c

@@ -6686,6 +6686,9 @@ node_t *parser_parse_atom(parser_t *parser) {
     parser->dp++;
 
     node = parser_parse_expr(parser);
+    if (!node)
+      parser_error(parser, "unmatched");
+
     if (parser->bn)
       node->dp = 2;
     else