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 <rishabhddave@gmail.com>
master
Rishabh Dave 2016-08-07 00:46:41 +05:30 committed by Benno Schulenberg
parent c8bc05b10e
commit 1fd2354ad4
1 changed files with 1 additions and 0 deletions

View File

@ -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"))