Fixed wrealloc() to be consistent with the wmalloc() behaviour when it cannot

allocate memory.
This commit is contained in:
dan committed 1999-12-01 22:25:48 +00:00
1 parent c914639b8c
commit ef42fce3e6
4 files changed
+29 -21

No files matched your search

-4
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;
+1 -1
View File
@@ -373,7 +373,7 @@ get_data(FILE *f)
{
COMPLAIN("the data datatype is not still implemented");
COMPLAIN("the data datatype is not yet implemented");
return NULL;
}