Possible uninitialized variable

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Danack
Posts: 73
Joined: 2013-10-14T10:00:25-07:00
Authentication code: 6789

Possible uninitialized variable

Post by Danack »

magick/channel.c: In function ‘SetImageAlphaChannel’:
magick/channel.c:886:9: warning: ‘pixel.opacity’ may be used uninitialized in this function [-Wuninitialized]
It does appear that the value might be used without being initialised, but I haven't checked through each macro to be sure.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Possible uninitialized variable

Post by magick »

We can reproduce the problem you posted and have a patch in ImageMagick 6.9.0-9 Beta, available by sometime tomorrow. Thanks.
Post Reply