From 45f3d9d579043d262f6f1064c072fb912c6ba839 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Sun, 7 Aug 2016 00:46:41 +0530 Subject: [PATCH] global: initialize toggle to zero For all rebounded keys, initialize toggle to the default value - zero, so that shortcuts that are not do_toggle_void (at scfunc) would not have their toggle uninitialized. 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 191b38e..47784fa 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")) -- 2.9.2