[Piglit] [PATCH piglit 4/4] egl: fix uninitialised counter

Eric Engestrom eric.engestrom at intel.com
Wed Aug 22 11:38:42 UTC 2018


CovID: 1438468 (UNINIT)
Fixes: e49d4479d6cabce970bb9 egl: Add basic EGL_MESA_device_software test"
Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
---
 .../spec/egl_mesa_device_software/egl_mesa_device_software.c    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/egl/spec/egl_mesa_device_software/egl_mesa_device_software.c b/tests/egl/spec/egl_mesa_device_software/egl_mesa_device_software.c
index 5004f0c60c7152c7aee6..cdfa94680c0895cb2232 100644
--- a/tests/egl/spec/egl_mesa_device_software/egl_mesa_device_software.c
+++ b/tests/egl/spec/egl_mesa_device_software/egl_mesa_device_software.c
@@ -33,7 +33,7 @@ main(void)
 {
 	enum piglit_result result = PIGLIT_PASS;
 	EGLDeviceEXT devs[NDEVS];
-	EGLint i, numdevs, swdevs;
+	EGLint i, numdevs, swdevs = 0;
 	EGLDeviceEXT device = EGL_NO_DEVICE_EXT;
 	EGLAttrib attr;
 	const char *devstring = NULL;
-- 
Cheers,
  Eric



More information about the Piglit mailing list