diff options
author | Peter Maydell | 2018-05-15 20:58:14 +0200 |
---|---|---|
committer | Gerd Hoffmann | 2018-05-18 09:14:24 +0200 |
commit | e8dcb8ae5121965ac8c89e6b277ac127e9d08452 (patch) | |
tree | ff2a8f5e8d90ae1cc581a63230e4778b4050f3c0 /hw/9pfs/9p-xattr-user.c | |
parent | ui: add x_keymap.o to modules (diff) | |
download | qemu-e8dcb8ae5121965ac8c89e6b277ac127e9d08452.tar.gz qemu-e8dcb8ae5121965ac8c89e6b277ac127e9d08452.tar.xz qemu-e8dcb8ae5121965ac8c89e6b277ac127e9d08452.zip |
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>
Diffstat (limited to 'hw/9pfs/9p-xattr-user.c')
0 files changed, 0 insertions, 0 deletions