segv patch from reinier :)

SVN revision: 22073
This commit is contained in:
Carsten Haitzler 2006-04-12 22:43:44 +00:00
parent 38c4ffa4ff
commit 92da7990c5
1 changed files with 5 additions and 2 deletions

View File

@ -2198,8 +2198,11 @@ _e_app_cache_new(E_App_Cache *ac, const char *path, int scan_subdirs)
if ((ac2->is_dir) && (scan_subdirs)) if ((ac2->is_dir) && (scan_subdirs))
{ {
a2 = e_app_new(buf, scan_subdirs); a2 = e_app_new(buf, scan_subdirs);
a2->parent = a; if (a2)
a->subapps = evas_list_append(a->subapps, a2); {
a2->parent = a;
a->subapps = evas_list_append(a->subapps, a2);
}
} }
else else
{ {