cli: fix invalid assertion

Fixes: 19c70ace95
This commit is contained in:
Thomas Haller 2017-04-06 15:40:07 +02:00
parent b7b0227935
commit 0b92c26bda

View file

@ -6641,7 +6641,7 @@ _meta_type_setting_info_editor_get_fcn (const NMMetaEnvironment *environment,
NMMetaAccessorGetFlags get_flags,
gpointer *out_to_free)
{
nm_assert (out_to_free && !out_to_free);
nm_assert (out_to_free && !*out_to_free);
g_return_val_if_reached (NULL);
}
@ -6656,7 +6656,7 @@ _meta_type_property_info_get_fcn (const NMMetaEnvironment *environment,
{
const NMMetaPropertyInfo *info = (const NMMetaPropertyInfo *) abstract_info;
nm_assert (out_to_free && !out_to_free);
nm_assert (out_to_free && !*out_to_free);
if (!NM_IN_SET (get_type,
NM_META_ACCESSOR_GET_TYPE_PARSABLE,