From 1fd2354ad49f388dafde3d510fb9632dec3ac281 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Sun, 7 Aug 2016 00:46:41 +0530 Subject: [PATCH] shortcuts: zero the value of 'toggle' for keys that are not toggles This fixes http://savannah.gnu.org/bugs/?48698. Signed-off-by: Rishabh Dave --- src/global.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/global.c b/src/global.c index 191b38e8..47784fac 100644 --- a/src/global.c +++ b/src/global.c @@ -1359,6 +1359,7 @@ sc *strtosc(const char *input) sc *s; s = (sc *)nmalloc(sizeof(sc)); + s->toggle = 0; #ifndef DISABLE_HELP if (!strcasecmp(input, "help"))