[DMenu] Fix uninitialized memory (nonselectable).

This commit is contained in:
Dave Davenport 2021-09-23 10:22:19 +02:00
parent e081feec27
commit 324cbd7746

View file

@ -121,6 +121,7 @@ static void read_add(DmenuModePrivateData *pd, char *data, gsize len) {
pd->cmd_list[pd->cmd_list_length].icon_name = NULL; pd->cmd_list[pd->cmd_list_length].icon_name = NULL;
pd->cmd_list[pd->cmd_list_length].meta = NULL; pd->cmd_list[pd->cmd_list_length].meta = NULL;
pd->cmd_list[pd->cmd_list_length].info = NULL; pd->cmd_list[pd->cmd_list_length].info = NULL;
pd->cmd_list[pd->cmd_list_length].nonselectable = FALSE;
char *end = data; char *end = data;
while (end < data + len && *end != '\0') { while (end < data + len && *end != '\0') {
end++; end++;