commit | 916117d97058b37e7eef2558a71919a8a073a3d3 | [log] [tgz] |
---|---|---|
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | Thu Mar 29 10:37:12 2018 -0500 |
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | Thu Mar 29 10:37:12 2018 -0500 |
tree | 3924c9b68fd8002ea1692a9e21c7216ae09b7f37 | |
parent | 7784cd3f6fba5008a83c869e401cb92e338b2c62 [diff] |
[libpng16] Allow compresion-type to be NULL in png_set_iCCP().
diff --git a/pngget.c b/pngget.c index 5c435dc..b888db3 100644 --- a/pngget.c +++ b/pngget.c
@@ -749,7 +749,8 @@ /* This is somewhat irrelevant since the profile data returned has * actually been uncompressed. */ - *compression_type = PNG_COMPRESSION_TYPE_BASE; + if (compression_type != NULL) + *compression_type = PNG_COMPRESSION_TYPE_BASE; return (PNG_INFO_iCCP); }