[libgweather/ebassi/issue-178] Initialize mapped file variable




commit 7832646549be3b1685c3b32f36c9a5556c7a2f14
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Mon Aug 22 18:42:17 2022 +0100

    Initialize mapped file variable
    
    Fixes: #178

 libgweather/gweather-private.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgweather/gweather-private.c b/libgweather/gweather-private.c
index 2f95d699..c6b32581 100644
--- a/libgweather/gweather-private.c
+++ b/libgweather/gweather-private.c
@@ -44,7 +44,7 @@ ensure_world (gpointer dummy G_GNUC_UNUSED)
 {
     g_autoptr (GError) error = NULL;
     g_autofree char *filename = NULL;
-    g_autoptr (GMappedFile) map;
+    g_autoptr (GMappedFile) map = NULL;
     const char *locations_path;
     GWeatherDb *db = NULL;
 


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