diff options
author | Thomas Haller <thaller@redhat.com> | 2015-07-24 15:47:07 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-07-24 15:48:29 +0200 |
commit | a67c1ec4b5c88c8c9f9740e9be073614a6f63d0d (patch) | |
tree | c502db0aaf18615c82eddd55080fb8a47d9c9bd0 | |
parent | 1bca45986561ab6fa6ca3e624ef9ac84d98cdce9 (diff) | |
download | NetworkManager-a67c1ec4b5c88c8c9f9740e9be073614a6f63d0d.tar.gz |
libnm-core: fix return value in nm_utils_enum_to_str()
Fixes: 8be981479366f8caeb494471742e5c801a52cfa2
-rw-r--r-- | libnm-core/nm-utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libnm-core/nm-utils.c b/libnm-core/nm-utils.c index c8b35b1dfb..2519d32ce6 100644 --- a/libnm-core/nm-utils.c +++ b/libnm-core/nm-utils.c @@ -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; |