mirror of
https://github.com/davatorium/rofi.git
synced 2025-07-31 21:59:25 -04: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…
Add table
Add a link
Reference in a new issue