mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
Fix compilation warning: Use a variable to store the return value
This commit is contained in:
parent
21f6e1841a
commit
cb301e6dbb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user