[glib] win32: Fix warning



commit 0a130c8bb0bbbbe392c3c10b92a09906ce8a07f3
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date:   Tue Apr 9 14:02:54 2013 +0200

    win32: Fix warning

 glib/gspawn-win32-helper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gspawn-win32-helper.c b/glib/gspawn-win32-helper.c
index 80e6757..7896941 100644
--- a/glib/gspawn-win32-helper.c
+++ b/glib/gspawn-win32-helper.c
@@ -341,7 +341,7 @@ main (int ignored_argc, char **ignored_argv)
           fd_toclose = g_slist_append (fd_toclose, GINT_TO_POINTER (i));
 
   /* ...so we won't get the nasty off-by-1 file descriptor leak */
-  g_slist_append (fd_toclose, NULL);
+  fd_toclose = g_slist_append (fd_toclose, NULL);
   last_item = g_slist_last (fd_toclose);
 
   /* now close all the file descriptors as necessary */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]