[glib: 9/11] Fix non-initialized variable in gio/gfile.c




commit 5ec3a425d2a58a55297d0e2652f61f68cc191f13
Author: Loic Le Page <llepage fluendo com>
Date:   Wed Jan 19 18:57:16 2022 +0100

    Fix non-initialized variable in gio/gfile.c

 gio/gfile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gfile.c b/gio/gfile.c
index 1810e36826..31a2395117 100644
--- a/gio/gfile.c
+++ b/gio/gfile.c
@@ -7742,7 +7742,7 @@ g_file_replace_contents (GFile             *file,
 {
   GFileOutputStream *out;
   gsize pos, remainder;
-  gssize res;
+  gssize res = -1;
   gboolean ret;
 
   g_return_val_if_fail (G_IS_FILE (file), FALSE);


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