mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
validate-report: Fix valist usage
a va_list always 'exists' (it's a struct). It therefore can't be NULL (and can't be tested) Just use the regular print variant where appropriate.
This commit is contained in:
parent
3d83370770
commit
a1da4cd733
1 changed files with 2 additions and 5 deletions
|
@ -516,7 +516,7 @@ gst_validate_printf (gpointer source, const gchar * format, ...)
|
|||
void
|
||||
gst_validate_print_action (GstValidateAction * action, const gchar * message)
|
||||
{
|
||||
gst_validate_printf_valist (action, message, NULL);
|
||||
gst_validate_printf (action, "%s", message);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -652,10 +652,7 @@ gst_validate_printf_valist (gpointer source, const gchar * format, va_list args)
|
|||
}
|
||||
}
|
||||
|
||||
if (args)
|
||||
g_string_append_vprintf (string, format, args);
|
||||
else
|
||||
g_string_append (string, format);
|
||||
g_string_append_vprintf (string, format, args);
|
||||
|
||||
if (!newline_regex)
|
||||
newline_regex =
|
||||
|
|
Loading…
Reference in a new issue