mirror of
https://github.com/lbonn/rofi
synced 2024-11-26 22:00:20 +00:00
[DMenu] Fix uninitialized memory (nonselectable).
This commit is contained in:
parent
e081feec27
commit
324cbd7746
1 changed files with 1 additions and 0 deletions
|
@ -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].meta = NULL;
|
||||
pd->cmd_list[pd->cmd_list_length].info = NULL;
|
||||
pd->cmd_list[pd->cmd_list_length].nonselectable = FALSE;
|
||||
char *end = data;
|
||||
while (end < data + len && *end != '\0') {
|
||||
end++;
|
||||
|
|
Loading…
Reference in a new issue