Commit 2c721f48 authored by Ulrich Sibiller's avatar Ulrich Sibiller

Keystroke.h: sane struct init

Correctly use constant for unused structs instead of implicitly setting it through calloc().
parent d2c81156
......@@ -369,6 +369,7 @@ static void parse_keystroke_file(void)
for (bindings = cur->children; bindings; bindings = bindings->next)
{
map[idx].stroke = KEYSTROKE_NOTHING;
if (bindings->type == XML_ELEMENT_NODE &&
strcmp((char *)bindings->name, "keystroke") == 0 &&
read_binding_from_xmlnode(bindings, &(map[idx])))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment