diff options
author | Marti <marti.maria@tktbrainpower.com> | 2016-03-29 18:43:51 +0200 |
---|---|---|
committer | Marti <marti.maria@tktbrainpower.com> | 2016-03-29 18:43:59 +0200 |
commit | 71918c6f026c1c854d8fc00b463a47f24a7a5fea (patch) | |
tree | 388ccce92089d864c8e6d70ab754cdecd70de59b /utils | |
parent | 27b1addf0e609713ae7ebdfb4495a9de09a14c7c (diff) | |
download | lcms2-71918c6f026c1c854d8fc00b463a47f24a7a5fea.tar.gz |
Add some minor memory checks
Diffstat (limited to 'utils')
-rw-r--r-- | utils/tificc/tificc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/tificc/tificc.c b/utils/tificc/tificc.c index 5101932..d627c03 100644 --- a/utils/tificc/tificc.c +++ b/utils/tificc/tificc.c @@ -705,7 +705,7 @@ cmsHPROFILE GetTIFFProfile(TIFF* in) hProfile = cmsOpenProfileFromMem(EmbedBuffer, EmbedLen); // Print description found in the profile - if (Verbose) { + if (Verbose & hProfile != NULL) { fprintf(stdout, "\n[Embedded profile]\n"); PrintProfileInformation(hProfile); |