From: Mathieu Malaterre Date: Mon, 10 Mar 2014 08:40:02 +0000 (+0000) Subject: [trunk] Make sure to always initialize variable X-Git-Tag: version.2.0.1~4^2~72 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=666ef53fd24e4816ae8f63e19943a0257f3e1869;p=openjpeg [trunk] Make sure to always initialize variable --- diff --git a/src/bin/jp2/convert.c b/src/bin/jp2/convert.c index 72babbaa..c170db71 100644 --- a/src/bin/jp2/convert.c +++ b/src/bin/jp2/convert.c @@ -416,6 +416,7 @@ int imagetotga(opj_image_t * image, const char *outfile) { float scale; FILE *fdest; size_t res; + fails = 1; fdest = fopen(outfile, "wb"); if (!fdest) {