[glib: 1/10] Fix non-initialized variable and signed/unsigned mismatch in glib/gunicollate.c




commit e8761bb4df0664ba4d67aac9d9120f6263cf3b60
Author: Loic Le Page <llepage fluendo com>
Date:   Wed Jan 19 19:01:10 2022 +0100

    Fix non-initialized variable and signed/unsigned mismatch in glib/gunicollate.c

 glib/gunicollate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/gunicollate.c b/glib/gunicollate.c
index dfed1041d..af62171d5 100644
--- a/glib/gunicollate.c
+++ b/glib/gunicollate.c
@@ -415,7 +415,7 @@ g_utf8_collate_key (const gchar *str,
   return result;
 #else
 
-  gsize xfrm_len;
+  gsize xfrm_len = 0;
   const gchar *charset;
   gchar *str_norm;
 


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