MagickWand/drawing-wand.c: resolve several null pointer dereferences
authorIlya Shipitsin <chipitsine@gmail.com>
Sun, 2 Sep 2018 10:18:08 +0000 (15:18 +0500)
committerDirk Lemstra <dirk@git.imagemagick.org>
Sun, 2 Sep 2018 10:39:41 +0000 (12:39 +0200)
commit8d7d5764406a617aa786d5d9d0b7c6dc6067cdc7
treede98c8c78725629050b8d51064215d1869c8e2ee
parent971f521183a4e8f74dc2d4e1e622f657f2097538
MagickWand/drawing-wand.c: resolve several null pointer dereferences
found by cppcheck

[MagickWand/drawing-wand.c:177] -> [MagickWand/drawing-wand.c:175]: (warning) Either the condition 'wand!=(DrawingWand*)NULL' is redundant or there is possible null pointer dereference: wand.
[MagickWand/drawing-wand.c:4540] -> [MagickWand/drawing-wand.c:4538]: (warning) Either the condition 'wand!=(DrawingWand*)NULL' is redundant or there is possible null pointer dereference: wand.
[MagickWand/drawing-wand.c:4682] -> [MagickWand/drawing-wand.c:4680]: (warning) Either the condition 'wand!=(DrawingWand*)NULL' is redundant or there is possible null pointer dereference: wand.
MagickWand/drawing-wand.c