mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-13 15:10:29 +01:00
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:
parent
95932ab577
commit
2c37a34d53
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue