WINGs: fix check for NULL pointer in WMFilePanel (Coverity #50195)
commit28ce91a9011ee1559ef5f7b09f0b23ee8e25fd12
authorChristophe CURIS <christophe.curis@free.fr>
Sun, 18 May 2014 19:31:50 +0000 (18 21:31 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 18 May 2014 22:01:43 +0000 (18 23:01 +0100)
tree13325696332d9402b0c55871d2fe4651871db2bd
parente65f527ad43644a989e5edbf574320191e8933f3
WINGs: fix check for NULL pointer in WMFilePanel (Coverity #50195)

As pointed by Coverity, there is a NULL pointer check at the end of the
function 'deleteFile' (which happens to not be necessary because wfree was
made to accept NULL pointers), however there are many things done before
that assumes the pointer is not NULL. The check is moved to where it
matters.

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