Peter Maydell e8dcb8ae51 sdl: Move use of surface pointer below check for whether it is NULL
In commit 2ab858c6c38ee1 we added a use of the 'surf' variable
in sdl2_2d_update() that was unfortunately placed above the
early-exit-if-NULL check. Move it to where it ought to be.

Fixes: Coverity CID 1390598
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20180515185814.1374-1-peter.maydell@linaro.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2018-05-18 09:14:24 +02:00
..
2018-05-15 10:47:01 +02:00
2018-05-18 09:13:37 +02:00
2018-04-09 10:40:47 +02:00
2018-05-15 10:22:12 +02:00
2018-03-13 11:17:29 -06:00
2018-05-15 10:36:55 +02:00
2018-05-15 10:36:55 +02:00
2018-05-15 10:36:55 +02:00