mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-01 01:00:33 +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') (cherry picked from commit2c37a34d53) (cherry picked from commite8de0433c2)
This commit is contained in:
parent
27811afdc8
commit
a44a8c5eee
1 changed files with 1 additions and 1 deletions
|
|
@ -862,7 +862,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