From 05fd2a9272faf8a57116d1624e1a32b4aa9f2994 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 29 Apr 2020 22:07:47 +0200 Subject: [PATCH] device: fix scope of variable in commit_option() --- src/devices/nm-device-bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/nm-device-bridge.c b/src/devices/nm-device-bridge.c index 1727eb8c6..4ca3b5b04 100644 --- a/src/devices/nm-device-bridge.c +++ b/src/devices/nm-device-bridge.c @@ -364,6 +364,7 @@ commit_option (NMDevice *device, NMSetting *setting, const Option *option, gbool nm_auto_unset_gvalue GValue val = G_VALUE_INIT; GParamSpec *pspec; const char *value; + char value_buf[100]; if (slave) nm_assert (NM_IS_SETTING_BRIDGE_PORT (setting)); @@ -387,7 +388,6 @@ commit_option (NMDevice *device, NMSetting *setting, const Option *option, gbool break; case G_TYPE_UINT64: case G_TYPE_UINT: { - char value_buf[100]; guint64 uval; if (pspec->value_type == G_TYPE_UINT64)