libs: display: drm: use g_strcmp0 to be null safe

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/321>
This commit is contained in:
Víctor Manuel Jáquez Leal 2020-04-21 18:00:26 +02:00 committed by GStreamer Merge Bot
parent 336c2b76d1
commit d195417758

View file

@ -111,7 +111,7 @@ get_default_device_path (GstVaapiDisplay * display)
parent = udev_device_get_parent (device);
for (i = 0; allowed_subsystems[i] != NULL; i++)
if (strcmp (udev_device_get_subsystem (parent),
if (g_strcmp0 (udev_device_get_subsystem (parent),
allowed_subsystems[i]) == 0)
break;