mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
tests: test-filter: fix dereference before null check
Null-checking op_info suggests that it may be null, but it has already been dereferenced on all paths leading to the check. There may be a null pointer dereference, or else the comparison against null is unnecessary.
This commit is contained in:
parent
66794c9bc9
commit
089b8982e9
1 changed files with 2 additions and 1 deletions
|
@ -152,13 +152,14 @@ error_cleanup:
|
|||
static void
|
||||
dump_operation (GstVaapiFilterOpInfo * op_info)
|
||||
{
|
||||
GParamSpec *const pspec = op_info->pspec;
|
||||
GParamSpec *pspec;
|
||||
GValue value = G_VALUE_INIT;
|
||||
gchar *value_str;
|
||||
|
||||
if (!op_info)
|
||||
return;
|
||||
|
||||
pspec = op_info->pspec;
|
||||
g_print (" %s: ", g_param_spec_get_name (pspec));
|
||||
g_value_init (&value, G_PARAM_SPEC_VALUE_TYPE (pspec));
|
||||
g_param_value_set_default (pspec, &value);
|
||||
|
|
Loading…
Reference in a new issue