mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
Initialize save_errno. (#355206, Mike Edenfield)
2006-09-10 Matthias Clasen <mclasen@redhat.com> * glib/gstdio.c (g_rename): Initialize save_errno. (#355206, Mike Edenfield)
This commit is contained in:
parent
2d96899c5b
commit
4a7aeef16f
@ -1,3 +1,8 @@
|
|||||||
|
2006-09-10 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/gstdio.c (g_rename): Initialize save_errno.
|
||||||
|
(#355206, Mike Edenfield)
|
||||||
|
|
||||||
2006-09-03 Matthias Clasen <mclasen@redhat.com>
|
2006-09-03 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/gerror.c: Allocate GErrors using the slice allocator.
|
* glib/gerror.c: Allocate GErrors using the slice allocator.
|
||||||
|
@ -261,7 +261,7 @@ g_rename (const gchar *oldfilename,
|
|||||||
wchar_t *woldfilename = g_utf8_to_utf16 (oldfilename, -1, NULL, NULL, NULL);
|
wchar_t *woldfilename = g_utf8_to_utf16 (oldfilename, -1, NULL, NULL, NULL);
|
||||||
wchar_t *wnewfilename;
|
wchar_t *wnewfilename;
|
||||||
int retval;
|
int retval;
|
||||||
int save_errno;
|
int save_errno = 0;
|
||||||
|
|
||||||
if (woldfilename == NULL)
|
if (woldfilename == NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user