libnm-core: fix return value in nm_utils_enum_to_str()
Fixes: 8be9814793
This commit is contained in:
@@ -3733,7 +3733,7 @@ char *nm_utils_enum_to_str (GType type, int value)
|
||||
}
|
||||
ret = g_string_free (str, FALSE);
|
||||
} else
|
||||
g_return_if_reached ();
|
||||
g_return_val_if_reached (NULL);
|
||||
|
||||
g_type_class_unref (class);
|
||||
return ret;
|
||||
@@ -3799,7 +3799,7 @@ gboolean nm_utils_enum_from_str (GType type, const char *str,
|
||||
} else
|
||||
ret = TRUE;
|
||||
} else
|
||||
g_assert_not_reached ();
|
||||
g_return_val_if_reached (FALSE);
|
||||
|
||||
if (out_value)
|
||||
*out_value = value;
|
||||
|
Reference in New Issue
Block a user