WMaker: Fixed crash if the RContext creation fail on a Screen (Coverity #50066)
commit810796b390083161aed4edef91a1c6664057e505
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 15 Nov 2014 18:40:37 +0000 (15 19:40 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 23 Nov 2014 22:42:19 +0000 (23 22:42 +0000)
treed30adb5b0deb8ee752a44ee47a7a9801515533fd
parent00f3ab0eaa754db65bd85c8a7183b1877442e4d0
WMaker: Fixed crash if the RContext creation fail on a Screen (Coverity #50066)

As pointed by Coverity, it is possible that RCreateContext fails for more
reasons that were handled by wScreenInit, so we provide an error message
for the other cases along with cleaner return from function.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
src/screen.c