wrlib: initialise value for variable to avoid possible crash (Coverity #50245)
commit173eaee9c28c8c23096acbdcadec5ffc2e5c6bae
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 14 Jun 2014 17:34:03 +0000 (14 19:34 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 15 Jun 2014 18:45:20 +0000 (15 19:45 +0100)
tree2a1ab0b05440230880303e51d3a99fc2978dd608
parent907dd97e45f7a91a222c22bde8b4f1433c6b3373
wrlib: initialise value for variable to avoid possible crash (Coverity #50245)

As pointed by Coverity, there's a free on the content of this buffer at
function's end, but if the image's width or height is lower than 1 then we
could reach this free before allocating anything, thus having an
uninitialised pointer.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
wrlib/load_jpeg.c