From: cristy Date: Thu, 22 Apr 2010 01:27:07 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~9616 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=62bd7a2bef5cb84be18dde180df7e67e46d12c86;p=imagemagick --- diff --git a/coders/histogram.c b/coders/histogram.c index d431cad01..16008c75b 100644 --- a/coders/histogram.c +++ b/coders/histogram.c @@ -343,7 +343,7 @@ static MagickBooleanType WriteHISTOGRAMImage(const ImageInfo *image_info, */ histogram=(MagickPixelPacket *) RelinquishMagickMemory(histogram); option=GetImageOption(image_info,"histogram:unique-colors"); - if ((option != (const char *) NULL) && (IsMagickTrue(option) != MagickFalse)) + if ((option == (const char *) NULL) || (IsMagickTrue(option) != MagickFalse)) { FILE *file;