Return 0 on error.

SVN revision: 32353
This commit is contained in:
Sebastian Dransfeld 2007-11-04 13:13:02 +00:00
parent 62cf45caab
commit 09926c9094
1 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@ ecore_path_group_new(const char *group_name)
if (!group_list)
{
group_list = ecore_list_new();
if (!group_list) return 0;
lastid = 0;
}
else
@ -43,7 +44,7 @@ ecore_path_group_new(const char *group_name)
group = __ecore_path_group_find(group_name);
if (group)
return -1;
return 0;
last = ecore_list_last_goto(group_list);
lastid = last->id;