Commit cdff4a33 authored by Allison Karlitskaya's avatar Allison Karlitskaya

Fix g_return_if_fail vs. return_val_if_fail

parent c04a063b
......@@ -416,7 +416,7 @@ g_action_name_is_valid (const gchar *action_name)
gchar c;
gint i;
g_return_if_fail (action_name != NULL);
g_return_val_if_fail (action_name != NULL, FALSE);
for (i = 0; (c = action_name[i]); i++)
if (!g_ascii_isalnum (c) && c != '.' && c != '-')
......@@ -557,7 +557,7 @@ gchar *
g_action_print_detailed_name (const gchar *action_name,
GVariant *target_value)
{
g_return_if_fail (g_action_name_is_valid (action_name));
g_return_val_if_fail (g_action_name_is_valid (action_name), NULL);
if (target_value == NULL)
return g_strdup (action_name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment