projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c237338
)
win32: Fix warning
author
Руслан Ижбулатов
<lrn1986@gmail.com>
Tue, 9 Apr 2013 12:02:54 +0000
(14:02 +0200)
committer
Alexander Larsson
<alexl@redhat.com>
Tue, 9 Apr 2013 12:02:54 +0000
(14:02 +0200)
glib/gspawn-win32-helper.c
patch
|
blob
|
history
diff --git
a/glib/gspawn-win32-helper.c
b/glib/gspawn-win32-helper.c
index
80e6757
..
7896941
100644
(file)
--- 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 */