hopefully fix a warning on VS2008 compiler
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Wed, 21 Dec 2011 10:24:59 +0000 (10:24 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Wed, 21 Dec 2011 10:24:59 +0000 (10:24 +0000)
applications/codec/convert.c

index fce65d000346e63cc94030220448a75a80709ea3..73ed9d09524760e97aa867d96607763ec37e620a 100644 (file)
@@ -1851,7 +1851,7 @@ int imagetopnm(opj_image_t * image, const char *outfile)
        FILE *fdest = NULL;
        const char *tmp = outfile;
        char *destname;
-
+  alpha = NULL;
     if((prec = image->comps[0].prec) > 16)
    {
        fprintf(stderr,"%s:%d:imagetopnm\n\tprecision %d is larger than 16"
@@ -1913,7 +1913,7 @@ int imagetopnm(opj_image_t * image, const char *outfile)
   {
        fprintf(fdest, "P6\n# OpenJPEG-%s\n%d %d\n%d\n", 
                opj_version(), wr, hr, max);
-       alpha = NULL; adjustA = 0;
+       adjustA = 0;
   }
     adjustR = (image->comps[0].sgnd ? 1 << (image->comps[0].prec - 1) : 0);