fix potential segfault

SVN revision: 32297
This commit is contained in:
doursse 2007-11-02 11:55:27 +00:00 committed by doursse
parent 53fe579d6d
commit 16dadb4847
1 changed files with 2 additions and 0 deletions

View File

@ -175,6 +175,8 @@ ecore_path_group_find(int group_id, const char *name)
CHECK_PARAM_POINTER_RETURN("name", name, NULL);
group = __ecore_path_group_find_id(group_id);
if (!group)
return NULL;
/*
* Search the paths of the path group for the specified file name