[glib: 8/10] Fix non-initialized variable in glib/gutils.c




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

    Fix non-initialized variable in glib/gutils.c

 glib/gutils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/gutils.c b/glib/gutils.c
index c6aec9e6f..457ae0955 100644
--- a/glib/gutils.c
+++ b/glib/gutils.c
@@ -957,7 +957,7 @@ g_get_host_name (void)
   if (g_once_init_enter (&hostname))
     {
       gboolean failed;
-      gchar *utmp;
+      gchar *utmp = NULL;
 
 #ifndef G_OS_WIN32
       gsize size;


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