parser: bugfix: initialize match when parsing new command

This commit is contained in:
Michael Stapelberg 2010-11-12 19:07:35 +01:00
parent 6eb7f2a01d
commit ea4e3e7682
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ char *parse_cmd(const char *new) {
cmdyy_scan_string(new);
match_init(&current_match);
context = scalloc(sizeof(struct context));
context->filename = "cmd";
FREE(json_output);