sdl2: add checking for NULL
commit49213b721f4620364aa09142b5f4d559fed26b53
authorPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Tue, 26 Jun 2018 06:47:29 +0000 (26 09:47 +0300)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 26 Jun 2018 11:48:49 +0000 (26 13:48 +0200)
treeefd384153e17751be619b6b09675ac0924b75215
parent48db08cf1619afde2ad0f7df11ba3ba54c49112b
sdl2: add checking for NULL

Sometimes SDL2 console can't be retrieved on events and scon variable
becomes NULL. This patch prevents processing of the events when the console
is not available.

Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Signed-off-by: Maria Klimushenkova <maria.klimushenkova@ispras.ru>
Message-id: 20180626064729.18070.47600.stgit@pasha-VirtualBox
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/sdl2.c