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
parent
c8bc05b10e
commit
1fd2354ad4
|
@ -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"))
|
||||
|
|
Loading…
Reference in New Issue