From 89c8a470473498f080b6d0920ddbce0bc0cdc36f Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 28 Jan 2020 14:38:41 +0100 Subject: [PATCH] core: fix device detection due to bug in NM_DEVICE_DEFINE_LINK_TYPES() Fixes: 86787e027828 ('core: improve implementation of NM_DEVICE_DEFINE_LINK_TYPES() macro') --- src/devices/nm-device-private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/nm-device-private.h b/src/devices/nm-device-private.h index 2e33d8a4a7..a8e577e645 100644 --- a/src/devices/nm-device-private.h +++ b/src/devices/nm-device-private.h @@ -180,7 +180,7 @@ void nm_device_commit_mtu (NMDevice *self); ((NM_NARG (__VA_ARGS__) == 0) \ ? NULL \ : ({ \ - const NMLinkType _types[NM_NARG (__VA_ARGS__) + 1] = { \ + static const NMLinkType _types[NM_NARG (__VA_ARGS__) + 1] = { \ __VA_ARGS__ \ _NM_MACRO_COMMA_IF_ARGS (__VA_ARGS__) \ NM_LINK_TYPE_NONE, \