parser: bugfix: initialize match when parsing new command
This commit is contained in:
parent
6eb7f2a01d
commit
ea4e3e7682
|
@ -71,6 +71,7 @@ char *parse_cmd(const char *new) {
|
|||
|
||||
cmdyy_scan_string(new);
|
||||
|
||||
match_init(¤t_match);
|
||||
context = scalloc(sizeof(struct context));
|
||||
context->filename = "cmd";
|
||||
FREE(json_output);
|
||||
|
|
Loading…
Reference in New Issue