WINGs: fix check for NULL pointer in WMText selection (Coverity #50067)
commit42febe3cecf0c5885cbf261ed34292572276277b
authorChristophe CURIS <christophe.curis@free.fr>
Sun, 18 May 2014 19:31:41 +0000 (18 21:31 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 18 May 2014 22:01:43 +0000 (18 23:01 +0100)
treea3838ad47748bbd60bc96c9078f0ef2d6ab8bca9
parentc86de122f91cff5df6ac35cdb12d24e5f1fb37a9
WINGs: fix check for NULL pointer in WMText selection (Coverity #50067)

As pointed by Coverity, there is a small check for NULL pointer when
handling triple-click selection in a WMText, however this check is only
partially implemented so the code would crash later anyway.
This patch implement an appropriate skip to avoid crash, and includes a
log message to help debug if the case happens.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
WINGs/wtext.c