core: fix device detection due to bug in NM_DEVICE_DEFINE_LINK_TYPES()

Fixes: 86787e0278 ('core: improve implementation of NM_DEVICE_DEFINE_LINK_TYPES() macro')
This commit is contained in:
Thomas Haller 2020-01-28 14:38:41 +01:00
parent 19d0b035dd
commit 89c8a47047

View file

@ -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, \