From 878baf7b33d2e85c564add67bfdfa3eba9ea70c9 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 28 Feb 2018 06:40:01 +0100 Subject: [PATCH] dhcp: fix uninitialized pointer in DHCP listener's _method_call_handle() Fixes: f67269b49d22278e0a70dad1fb52c5b015c12cf6 (cherry picked from commit 6292851248845ef0b300b0b7f017b7742413277b) --- src/dhcp/nm-dhcp-listener.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dhcp/nm-dhcp-listener.c b/src/dhcp/nm-dhcp-listener.c index a0449816cd..1cce5a1c7e 100644 --- a/src/dhcp/nm-dhcp-listener.c +++ b/src/dhcp/nm-dhcp-listener.c @@ -145,7 +145,7 @@ _method_call_handle (NMDhcpListener *self, gs_free char *iface = NULL; gs_free char *pid_str = NULL; gs_free char *reason = NULL; - gs_unref_variant GVariant *options; + gs_unref_variant GVariant *options = NULL; int pid; gboolean handled = FALSE;