shuddup gcc wanrings

SVN revision: 52434
This commit is contained in:
Carsten Haitzler 2010-09-19 00:36:27 +00:00
parent ead7329b42
commit d9aad06334
1 changed files with 4 additions and 4 deletions

View File

@ -167,8 +167,8 @@ ef_cb_desktop_command_get(void)
Test_Info *info;
int ret;
getcwd(olddir, PATH_MAX);
chdir("/");
if (getcwd(olddir, PATH_MAX) != 0) ret = 0;
if (chdir("/") != 0) ret = 0;
printf("\n");
desktop = efreet_desktop_empty_new("test.desktop");
@ -321,11 +321,11 @@ ef_cb_desktop_command_get(void)
efreet_desktop_free(desktop);
eina_list_free(files);
if (chdir(olddir) != 0) ret = 0;
ret = info->error > 0 ? 0 : 1;
free(info);
chdir(olddir);
return ret;
}