summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-04-28 23:25:16 +0200
committerThomas Haller <thaller@redhat.com>2021-05-03 10:11:24 +0200
commit2c37a34d530649df4fb0b6dd826df90ee55bd66f (patch)
treeda2df3e6a1f7fc603792cb333d1346e83aae142a
parent95932ab5777555d3f3c503b4aecb89686efbe186 (diff)
downloadNetworkManager-2c37a34d530649df4fb0b6dd826df90ee55bd66f.tar.gz
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')
-rw-r--r--src/libnmc-setting/nm-meta-setting-desc.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}