From: Michael Stapelberg Date: Fri, 12 Nov 2010 18:07:35 +0000 (+0100) Subject: parser: bugfix: initialize match when parsing new command X-Git-Tag: tree-pr1~128 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ea4e3e7682723510bbe9dd009112e198bc149d2f;p=i3%2Fi3 parser: bugfix: initialize match when parsing new command --- diff --git a/src/cmdparse.y b/src/cmdparse.y index a4ed00bb..bcf144cd 100644 --- a/src/cmdparse.y +++ b/src/cmdparse.y @@ -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);