mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
Fixed wrealloc() to be consistent with the wmalloc() behaviour when it cannot
allocate memory.
This commit is contained in:
@@ -294,10 +294,6 @@ wMenuInsertCallback(WMenu *menu, int index, char *text,
|
||||
|
||||
tmp = wrealloc(menu->entries,
|
||||
sizeof(WMenuEntry)*(menu->alloced_entries+5));
|
||||
if (tmp==NULL) {
|
||||
wwarning(_("wrealloc() failed while trying to add menu item"));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
menu->entries = tmp;
|
||||
menu->alloced_entries += 5;
|
||||
|
||||
Reference in New Issue
Block a user