Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdl: Move use of surface pointer below check for whether it is NULL
In commit 2ab858c 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 <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Message-id: [email protected] Signed-off-by: Gerd Hoffmann <[email protected]>
- Loading branch information