From b4ba1f346847e2bdbc598d554f8076f3b2a875eb Mon Sep 17 00:00:00 2001 From: Marti Maria Date: Tue, 22 Aug 2017 09:44:42 +0200 Subject: fix for a bug intrudoced by last commit Found by coverity! --- src/cmsgamma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cmsgamma.c b/src/cmsgamma.c index c2d15d4..081a2a9 100644 --- a/src/cmsgamma.c +++ b/src/cmsgamma.c @@ -218,7 +218,7 @@ cmsToneCurve* AllocateToneCurveStruct(cmsContext ContextID, cmsUInt32Number nEnt cmsUInt32Number i; // We allow huge tables, which are then restricted for smoothing operations - if (nEntries > 65530 || nEntries == 0) { + if (nEntries > 65530) { cmsSignalError(ContextID, cmsERROR_RANGE, "Couldn't create tone curve of more than 65530 entries"); return NULL; } -- cgit v1.2.1