From: Michael Stapelberg Date: Mon, 14 Mar 2011 22:03:13 +0000 (+0100) Subject: cmdparse: don’t allow empty commands X-Git-Tag: tree-pr3~128 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=627683c053dc0cfbb75f8a19d77e62e3ff014744;p=i3%2Fi3 cmdparse: don’t allow empty commands --- diff --git a/src/cmdparse.y b/src/cmdparse.y index be402f9e..5eb4a0b1 100644 --- a/src/cmdparse.y +++ b/src/cmdparse.y @@ -153,8 +153,8 @@ char *parse_cmd(const char *new) { %% -commands: /* empty */ - | commands optwhitespace ';' optwhitespace command +commands: + commands optwhitespace ';' optwhitespace command | command { owindow *current;