summaryrefslogtreecommitdiff
path: root/legacy/efreet/src
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2010-08-03 19:31:04 +0000
committerSebastian Dransfeld <sd@tango.flipp.net>2010-08-03 19:31:04 +0000
commit7f93656d7bc8e0f0cf09f43b7aa5b21ec719d38a (patch)
tree884ec49b97010fabc1b943d29becbe2ca85863db /legacy/efreet/src
parent8554a0c23b2caeb17bfe8330afa6437f48913d1e (diff)
check return value from malloc
SVN revision: 50780
Diffstat (limited to 'legacy/efreet/src')
-rw-r--r--legacy/efreet/src/lib/efreet_desktop.c1
-rw-r--r--legacy/efreet/src/lib/efreet_desktop_command.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/legacy/efreet/src/lib/efreet_desktop.c b/legacy/efreet/src/lib/efreet_desktop.c
index b7e3707..9ebeb74 100644
--- a/legacy/efreet/src/lib/efreet_desktop.c
+++ b/legacy/efreet/src/lib/efreet_desktop.c
@@ -814,6 +814,7 @@ efreet_desktop_string_list_join(Eina_List *list)
814 814
815 size = 1024; 815 size = 1024;
816 string = malloc(size); 816 string = malloc(size);
817 if (!string) return NULL;
817 pos = 0; 818 pos = 0;
818 819
819 EINA_LIST_FOREACH(list, l, elem) 820 EINA_LIST_FOREACH(list, l, elem)
diff --git a/legacy/efreet/src/lib/efreet_desktop_command.c b/legacy/efreet/src/lib/efreet_desktop_command.c
index dac3618..374431c 100644
--- a/legacy/efreet/src/lib/efreet_desktop_command.c
+++ b/legacy/efreet/src/lib/efreet_desktop_command.c
@@ -369,6 +369,7 @@ efreet_desktop_command_build(Efreet_Desktop_Command *command)
369 Efreet_Desktop_Command_File *file = eina_list_data_get(l); 369 Efreet_Desktop_Command_File *file = eina_list_data_get(l);
370 370
371 exec = malloc(size); 371 exec = malloc(size);
372 if (!exec) goto error;
372 p = command->desktop->exec; 373 p = command->desktop->exec;
373 len = 0; 374 len = 0;
374 375