validate: report: avoid _strdup_printf() if not needed

g_strdup() is enough for this string literal.
This commit is contained in:
Reynaldo H. Verdejo Pinochet 2017-04-05 14:09:53 -07:00
parent c8478b87f8
commit 38440a5931

View file

@ -815,7 +815,7 @@ print_action_parameter (GString * string, GstValidateActionType * type,
g_regex_replace (newline_regex, param->description,
-1, 0, tmp, 0, NULL);
} else {
desc = g_strdup_printf ("No description");
desc = g_strdup ("No description");
}
g_string_append_printf (string, "\n %-30s : %s", param_head, desc);