libnm-core: fix return value in nm_utils_enum_to_str()

Fixes: 8be9814793
This commit is contained in:
Thomas Haller
2015-07-24 15:47:07 +02:00
parent 1bca459865
commit a67c1ec4b5

View File

@@ -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;