From 9271dae53caf0f16d1f3f15927e706ec6c70feef Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
Date: Wed, 18 Jul 2018 11:29:31 +0200
Subject: [PATCH] PhoshWWanMMPrivate: Initialize modem variable

otherwise the unitialized variable might be cleaned up on the error
path.
---
 src/wwan/phosh-wwan-mm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wwan/phosh-wwan-mm.c b/src/wwan/phosh-wwan-mm.c
index 5e623bce5..af424f6aa 100644
--- a/src/wwan/phosh-wwan-mm.c
+++ b/src/wwan/phosh-wwan-mm.c
@@ -359,7 +359,7 @@ phosh_wwan_mm_constructed (GObject *object)
   PhoshWWanMMPrivate *priv = phosh_wwan_mm_get_instance_private (self);
   const gchar *modem_object_path;
   GError *err = NULL;
-  g_autoptr(GList) modems;
+  g_autoptr(GList) modems = NULL;
 
   G_OBJECT_CLASS (phosh_wwan_mm_parent_class)->constructed (object);
 
-- 
GitLab