wmaker: fix incomplete null pointer check in wFrameWindowChangeTitle (Coverity #50058)
commit38463df1024bd96448da0fd86257788d0ac4dc9d
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 15 Nov 2014 18:40:47 +0000 (15 19:40 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 23 Nov 2014 22:43:37 +0000 (23 22:43 +0000)
treea8f2843cdc37225fee959cfae7ff6e05c2c92f40
parente27bab9f36397f59a35c9f5853bc982f8c094a0d
wmaker: fix incomplete null pointer check in wFrameWindowChangeTitle (Coverity #50058)

As pointed by Coverity, despite the numerous null pointer checks there is
still a case where one can pass trough and make wmaker crash.

This patch simplifies it all but making only one check at the beginning so
the code is safe and the remaining is simpler.

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