summaryrefslogtreecommitdiff
path: root/glib/gstdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'glib/gstdio.c')
-rw-r--r--glib/gstdio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/gstdio.c b/glib/gstdio.c
index 969485654..a9dc98b99 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)
{