mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-04 22:48:49 +00:00
libs: vaapi: object: remove unrequired NULL check
Coverity scan bug: Dereference after null check: Either the check against null is unnecessary, or there may be a null pointer dereference. Variable klass has been validated as non-NULL several time before in gst_vaapi_object_new() function, so there is no need to check it again.
This commit is contained in:
parent
d65ce31f14
commit
d99d5704a4
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ gst_vaapi_object_new (const GstVaapiObjectClass * klass,
|
||||||
if (sub_size > 0)
|
if (sub_size > 0)
|
||||||
memset (((guchar *) object) + sizeof (*object), 0, sub_size);
|
memset (((guchar *) object) + sizeof (*object), 0, sub_size);
|
||||||
|
|
||||||
if (klass && klass->init)
|
if (klass->init)
|
||||||
klass->init (object);
|
klass->init (object);
|
||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue