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: e9ee4e39f1 ('cli: handle string properties that can both be empty and %NULL')
This commit is contained in:
Thomas Haller 2021-04-28 23:25:16 +02:00
parent 95932ab577
commit 2c37a34d53
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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);
}
}