[gtk+] Fix compilation warning: Use a variable to store the return value
- From: Javier Jardón <jjardon src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Fix compilation warning: Use a variable to store the return value
- Date: Mon, 9 Nov 2009 21:54:30 +0000 (UTC)
commit cb301e6dbbe8c4017c7022995976b577796cf903
Author: Javier Jardón <jjardon gnome org>
Date: Mon Nov 9 22:39:54 2009 +0100
Fix compilation warning: Use a variable to store the return value
gtk/gtkfilesel.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilesel.c b/gtk/gtkfilesel.c
index eca76ca..78938a3 100644
--- a/gtk/gtkfilesel.c
+++ b/gtk/gtkfilesel.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]