From d19541775818aee6c85a4c54ddedbd26d647698f Mon Sep 17 00:00:00 2001 From: Víctor Manuel Jáquez Leal Date: Tue, 21 Apr 2020 18:00:26 +0200 Subject: libs: display: drm: use g_strcmp0 to be null safe Part-of: --- gst-libs/gst/vaapi/gstvaapidisplay_drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gst-libs') diff --git a/gst-libs/gst/vaapi/gstvaapidisplay_drm.c b/gst-libs/gst/vaapi/gstvaapidisplay_drm.c index 25707544..ecc5a14f 100644 --- a/gst-libs/gst/vaapi/gstvaapidisplay_drm.c +++ b/gst-libs/gst/vaapi/gstvaapidisplay_drm.c @@ -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; -- cgit v1.2.3