[trunk] Make sure to always initialize variable
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Mon, 10 Mar 2014 08:40:02 +0000 (08:40 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Mon, 10 Mar 2014 08:40:02 +0000 (08:40 +0000)
src/bin/jp2/convert.c

index 72babbaad903db8f619df89edc52cfda0e31161b..c170db7191c946af5341c2c573693b799767a78a 100644 (file)
@@ -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) {