The immutable field might be left uninitialized without this.
---
 vpn/vpn-provider.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vpn/vpn-provider.c b/vpn/vpn-provider.c
index bb89ccf..de3931f 100644
--- a/vpn/vpn-provider.c
+++ b/vpn/vpn-provider.c
@@ -2139,7 +2139,7 @@ static int set_string(struct vpn_provider *provider,
                        return -EPERM;
                }
 
-               setting = g_try_new(struct vpn_setting, 1);
+               setting = g_try_new0(struct vpn_setting, 1);
                if (setting == NULL)
                        return -ENOMEM;
 
-- 
1.7.11.4

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to