1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-27 08:52:30 +01:00
Files
wmaker/src
Christophe CURIS 1b00071c26 wmaker: add check for null pointer in wAppIconCreateForDock (Coverity #50053)
As pointed by Coverity, there is in the same procedure a check for null
pointer before use, and later a direct use without check.

In most case, the pointer is not null, but it one case it is hard to be
sure that the pointer cannot be null, so it's safer to just add a check
there also.

Took opportunity to swap the order of the arguments in the if, because if
the config flag is false it is not necessary to spend time on doing the
more expensive strcmp.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-11-29 18:44:47 +00:00
..
2013-05-26 19:48:00 +01:00
2010-09-11 17:32:57 +02:00
2010-09-11 17:32:57 +02:00
2013-06-10 22:34:59 +01:00
2013-05-26 19:48:00 +01:00
2013-05-26 19:48:00 +01:00
2013-05-26 19:48:00 +01:00
2013-05-26 19:48:00 +01:00
2013-05-26 19:48:00 +01:00
2013-05-26 19:48:00 +01:00
2012-04-04 19:44:40 +01:00
2012-06-24 12:30:17 +01:00
2012-11-19 00:12:46 +01:00
2013-05-26 19:48:00 +01:00
2013-05-26 19:48:00 +01:00
2014-08-15 01:08:23 +01:00
2013-05-26 19:48:00 +01:00
2014-08-29 12:43:50 +01:00
2014-08-15 01:08:23 +01:00
2012-10-30 15:26:52 +00:00
2013-12-30 18:11:06 +00:00