Skip to content

Commit

Permalink
fix crash on empty name
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Dec 19, 2023
1 parent 86dcd10 commit 9007c1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ static void parse_menu(void *talloc_ctx, HMENU hmenu, bstr key, bstr cmd,
name = bstr_split(text, ">", &rest);
name = bstr_split(name, "#", &comment);
name = bstr_strip(name);
if (!name.len) return;

if (!rest.len) {
if (is_seprarator(name, uosc)) {
Expand Down

0 comments on commit 9007c1d

Please sign in to comment.