egl: android: Fix potential use of unitialized variable
authorTomasz Figa <tfiga@chromium.org>
Wed, 5 Jul 2017 14:56:51 +0000 (23:56 +0900)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 5 Jul 2017 17:49:22 +0000 (18:49 +0100)
commit0ede0f9dff519fe4444da91031c687207b0d9c5f
treeb019a7db57f3b01e503c205039430e368be7842a
parent50a8a7377ae071d5b4b927e9055a7ec8391acc59
egl: android: Fix potential use of unitialized variable

If dri2_setup_extensions() fails, the "err" variable would not be assigned
causing the error path to access an unitialized variable. Fix it by
assigning an error message.

Fixes: 2c341f2bda4 ("egl: refactor dri2_create_screen() into three separate functions")
Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/drivers/dri2/platform_android.c