check return value from malloc

SVN revision: 50780
This commit is contained in:
Sebastian Dransfeld 2010-08-03 19:31:04 +00:00
parent 8554a0c23b
commit 7f93656d7b
2 changed files with 2 additions and 0 deletions

View File

@ -814,6 +814,7 @@ efreet_desktop_string_list_join(Eina_List *list)
size = 1024;
string = malloc(size);
if (!string) return NULL;
pos = 0;
EINA_LIST_FOREACH(list, l, elem)

View File

@ -369,6 +369,7 @@ efreet_desktop_command_build(Efreet_Desktop_Command *command)
Efreet_Desktop_Command_File *file = eina_list_data_get(l);
exec = malloc(size);
if (!exec) goto error;
p = command->desktop->exec;
len = 0;