Return NULL if file does not exist.

SVN revision: 30988
This commit is contained in:
Sebastian Dransfeld 2007-07-26 11:37:23 +00:00
parent 3b116f3a2b
commit c233e2af8b
1 changed files with 2 additions and 0 deletions

View File

@ -266,6 +266,8 @@ efreet_desktop_new(const char *file)
{
Efreet_Desktop *desktop;
if (!ecore_file_exists(file)) return NULL;
desktop = NEW(Efreet_Desktop, 1);
if (!desktop) return NULL;