about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2021-03-09 03:40:05 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2021-03-09 03:40:05 +0000
commit9af120d7aeaabd372d5a060b52a93d77fbf11eff (patch)
treee69a7e3914634a591cc637c8bd806ee061437791
parent1e8494b68ac9ff5493ef77c962ef0048a328ba0f (diff)
downloadnetpbm-mirror-9af120d7aeaabd372d5a060b52a93d77fbf11eff.tar.gz
netpbm-mirror-9af120d7aeaabd372d5a060b52a93d77fbf11eff.tar.xz
netpbm-mirror-9af120d7aeaabd372d5a060b52a93d77fbf11eff.zip
Fix constant failure of decode with non-Netpbm libjasper
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4045 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r--converter/other/jpeg2000/libjasper_compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/converter/other/jpeg2000/libjasper_compat.h b/converter/other/jpeg2000/libjasper_compat.h
index 45dd904b..103b1d09 100644
--- a/converter/other/jpeg2000/libjasper_compat.h
+++ b/converter/other/jpeg2000/libjasper_compat.h
@@ -49,7 +49,7 @@ pmjas_image_decode(jas_stream_t * const in,
 
     if (jasperP) {
         *imagePP = jasperP;
-        *errorP  = errorP;
+        *errorP  = NULL;
     } else {
         pm_asprintf(errorP, "Failed.  Details may have been written to "
                     "Standard Error");