1
0
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:
dan
1999-12-01 22:25:48 +00:00
parent c914639b8c
commit ef42fce3e6
4 changed files with 29 additions and 21 deletions

View File

@@ -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;