[libadwaita/wip/exalm/warning: 4/4] demo: Fix a g_autofree warning in CI




commit 675ff1276bd578c75c2a57e6988f64ac54cf2510
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Nov 1 14:50:57 2021 +0500

    demo: Fix a g_autofree warning in CI
    
    This should be fine, considering we unconditionally set that variable
    immediately afterwards, but whatever.

 demo/adwaita-demo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/demo/adwaita-demo.c b/demo/adwaita-demo.c
index 250e26c3..ec7e1683 100644
--- a/demo/adwaita-demo.c
+++ b/demo/adwaita-demo.c
@@ -48,7 +48,7 @@ show_about (GSimpleAction *action,
 
   GtkApplication *app = GTK_APPLICATION (user_data);
   GtkWindow *window = gtk_application_get_active_window (app);
-  g_autofree char *version;
+  g_autofree char *version = NULL;
 
   version = g_strdup_printf ("%s\nRunning against libadwaita %d.%d.%d, GTK %d.%d.%d",
                              ADW_VERSION_S,


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