Return immediatly on error.

SVN revision: 26037
This commit is contained in:
sebastid 2006-09-23 08:05:23 +00:00 committed by sebastid
parent f1b46bd67e
commit be24979e13
1 changed files with 90 additions and 92 deletions

View File

@ -46,14 +46,13 @@ Ecore_Hash *
ecore_desktop_ini_get(const char *file)
{
Ecore_Hash *result;
result = ecore_hash_new(ecore_str_hash, ecore_str_compare);
if (result)
{
FILE *f;
char buffer[PATH_MAX];
Ecore_Hash *current = NULL;
result = ecore_hash_new(ecore_str_hash, ecore_str_compare);
if (!result) NULL;
f = fopen(file, "r");
if (!f)
{
@ -141,7 +140,6 @@ ecore_desktop_ini_get(const char *file)
buffer[0] = (char)0;
fclose(f);
}
return result;
}