Fix compilation warning: Use a variable to store the return value

This commit is contained in:
Javier Jardón 2009-11-09 22:39:54 +01:00
parent 21f6e1841a
commit cb301e6dbb

View File

@ -3431,8 +3431,10 @@ find_parent_dir_fullname (gchar* dirname)
if (chdir (sys_dirname) != 0 || chdir ("..") != 0)
{
int ignored;
cmpl_errno = errno;
chdir (sys_orig_dir);
ignored = g_chdir (sys_orig_dir);
g_free (sys_dirname);
g_free (sys_orig_dir);
return NULL;