wmaker: remove unnecessary null check (Coverity #50196)
commite27bab9f36397f59a35c9f5853bc982f8c094a0d
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 15 Nov 2014 18:40:46 +0000 (15 19:40 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 23 Nov 2014 22:43:37 +0000 (23 22:43 +0000)
tree80e68e65e656440982d1533cb90551644697222d
parent694e66e30d2439af5f1bd64f646d7d2e4a943c85
wmaker: remove unnecessary null check (Coverity #50196)

As pointed by Coverity, text cannot be null in this part of code. The
analysis shows that if it were, the function wIconChangeImageFile would
have directed execution to the 'else' branch. (and if it hadn't, the code
would have crashed beforehand because 'strlen' does not like null pointers)

Coverity recommends to remove the unnecessary check for code the
maintainability.

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