util: add proper check for null pointer in wmsetbg (Coverity #50198)
commit7c142f54d0d3c8b54407b11af1d604d6349ec7ea
authorChristophe CURIS <christophe.curis@free.fr>
Mon, 16 Jun 2014 18:15:25 +0000 (16 20:15 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 16 Jun 2014 19:00:09 +0000 (16 20:00 +0100)
tree137a2e7d18171c5b7a61f0fce458aaeb534dff43
parent3250826215b0d346ef47e46008450c1c85dba067
util: add proper check for null pointer in wmsetbg (Coverity #50198)

As pointed by Coverity, it is possible that the variable 'image' remains
NULL in the function parseTexture, so this case must be checked
appropriately where it is used.

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