fix memory allocation bug

when receiving SIGUSR1 hkd would try to allocate the new hotkey list in the old
space which could lead to errors
xkbcommon
Alessandro Mauri 4 years ago
parent d6b8e129d7
commit 79bbbcf8a9
  1. 1
      hkd.c

@ -731,6 +731,7 @@ void parse_config_file (void)
} }
hotkey_list_destroy(hotkey_list); hotkey_list_destroy(hotkey_list);
hotkey_list = NULL;
while (exit_state >= 0) { while (exit_state >= 0) {
int tmp = 0; int tmp = 0;
memset(block, 0, BLOCK_SIZE + 1); memset(block, 0, BLOCK_SIZE + 1);

Loading…
Cancel
Save