From: Matthias Clasen Date: Sun, 10 Sep 2006 05:13:52 +0000 (+0000) Subject: Initialize save_errno. (#355206, Mike Edenfield) X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=4a7aeef16fc46b4451b82caf88577c06140e28b0;p=dana%2Fcg-glib.git Initialize save_errno. (#355206, Mike Edenfield) 2006-09-10 Matthias Clasen * glib/gstdio.c (g_rename): Initialize save_errno. (#355206, Mike Edenfield) --- diff --git a/ChangeLog b/ChangeLog index b0d253f0..0a9ecb86 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-09-10 Matthias Clasen + + * glib/gstdio.c (g_rename): Initialize save_errno. + (#355206, Mike Edenfield) + 2006-09-03 Matthias Clasen * glib/gerror.c: Allocate GErrors using the slice allocator. diff --git a/glib/gstdio.c b/glib/gstdio.c index 96948565..a9dc98b9 100644 --- a/glib/gstdio.c +++ b/glib/gstdio.c @@ -261,7 +261,7 @@ g_rename (const gchar *oldfilename, wchar_t *woldfilename = g_utf8_to_utf16 (oldfilename, -1, NULL, NULL, NULL); wchar_t *wnewfilename; int retval; - int save_errno; + int save_errno = 0; if (woldfilename == NULL) {