[Piglit] [PATCH piglit 3/4] egl: fix uninitialised counter
Eric Engestrom
eric.engestrom at intel.com
Wed Aug 22 11:38:41 UTC 2018
CovID: 1438470 (UNINIT)
Fixes: 6c08c9fab326a526b41e1 "egl: Add basic EGL_EXT_device_drm test"
Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
---
tests/egl/spec/egl_ext_device_drm/egl_ext_device_drm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/egl/spec/egl_ext_device_drm/egl_ext_device_drm.c b/tests/egl/spec/egl_ext_device_drm/egl_ext_device_drm.c
index 3877d57d231800869ac1..537c8b60f83be03570e6 100644
--- a/tests/egl/spec/egl_ext_device_drm/egl_ext_device_drm.c
+++ b/tests/egl/spec/egl_ext_device_drm/egl_ext_device_drm.c
@@ -39,7 +39,7 @@ main(void)
EGLDisplay dpy1, dpy2, dpy3;
enum piglit_result result = PIGLIT_PASS;
EGLDeviceEXT devs[NDEVS];
- EGLint i, numdevs, drmdevs;
+ EGLint i, numdevs, drmdevs = 0;
EGLDeviceEXT device = EGL_NO_DEVICE_EXT;
EGLAttrib attr;
const char *devstring = NULL;
--
Cheers,
Eric
More information about the Piglit
mailing list