From 2c37a34d530649df4fb0b6dd826df90ee55bd66f Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 28 Apr 2021 23:25:16 +0200 Subject: [PATCH] cli: fix RETURN_STR_EMPTYUNSET() macro for printing handle_emptyunset string This was currently unused, because actually no property of type string had handle_emptyunuset set. Fixes: e9ee4e39f199 ('cli: handle string properties that can both be empty and %NULL') --- src/libnmc-setting/nm-meta-setting-desc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libnmc-setting/nm-meta-setting-desc.c b/src/libnmc-setting/nm-meta-setting-desc.c index 36e523422a..161cc8d217 100644 --- a/src/libnmc-setting/nm-meta-setting-desc.c +++ b/src/libnmc-setting/nm-meta-setting-desc.c @@ -864,7 +864,7 @@ _get_fcn_gobject_impl(const NMMetaPropertyInfo *property_info, * signal them differently. */ cstr = g_value_get_string(&val); nm_assert((!!is_default) == (cstr == NULL)); - RETURN_STR_EMPTYUNSET(get_type, is_default, NULL); + RETURN_STR_EMPTYUNSET(get_type, is_default, cstr); } }