mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 06:00:08 +01:00
libnm-core: fix return value in nm_utils_enum_to_str()
Fixes: 8be9814793
This commit is contained in:
parent
1bca459865
commit
a67c1ec4b5
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue