remove redundant condition on tty_add_menu()
`newstr` is assigned to `str` or `buf`. `buf` is an address of an array, and `str` is guarded, so both are non-NULL.
This commit is contained in:
+1
-1
@@ -3036,7 +3036,7 @@ tty_add_menu(winid window, /* window to use, must be of type NHW_MENU */
|
|||||||
item->selector = ch;
|
item->selector = ch;
|
||||||
item->gselector = gch;
|
item->gselector = gch;
|
||||||
item->attr = attr;
|
item->attr = attr;
|
||||||
item->str = dupstr(newstr ? newstr : "");
|
item->str = dupstr(newstr);
|
||||||
|
|
||||||
item->next = cw->mlist;
|
item->next = cw->mlist;
|
||||||
cw->mlist = item;
|
cw->mlist = item;
|
||||||
|
|||||||
Reference in New Issue
Block a user