[gnome-builder/gnome-builder-3-30] plugins: sysroot: fix warning uninitialized g_autofree variable
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-30] plugins: sysroot: fix warning uninitialized g_autofree variable
- Date: Thu, 8 Nov 2018 17:17:10 +0000 (UTC)
commit 8de7284768d086f9430b42856dc7a1b6ad37192d
Author: Daniel Buch <boogiewasthere gmail com>
Date: Thu Nov 8 13:19:04 2018 +0100
plugins: sysroot: fix warning uninitialized g_autofree variable
src/plugins/sysroot/gbp-sysroot-preferences-addin.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/sysroot/gbp-sysroot-preferences-addin.c
b/src/plugins/sysroot/gbp-sysroot-preferences-addin.c
index 607340ab4..bce87b950 100644
--- a/src/plugins/sysroot/gbp-sysroot-preferences-addin.c
+++ b/src/plugins/sysroot/gbp-sysroot-preferences-addin.c
@@ -39,7 +39,7 @@ sysroot_preferences_add_new (GbpSysrootPreferencesAddin *self,
{
GtkWidget *pref_row = NULL;
guint id = 0;
- g_autofree gchar *new_target;
+ g_autofree gchar *new_target = NULL;
GbpSysrootManager *sysroot_manager = NULL;
g_assert (GBP_IS_SYSROOT_PREFERENCES_ADDIN (self));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]