Skip to content

Commit

Permalink
Missing return
Browse files Browse the repository at this point in the history
Fix the fix of the fix for a wrong PR
  • Loading branch information
mm2 committed Sep 17, 2023
1 parent 3a13a3f commit c84094f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cmsps2.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,12 +445,13 @@ void Emit1Gamma(cmsIOHANDLER* m, cmsToneCurve* Table)
* On error, empty tables or lienar assume gamma 1.0
*/
if (Table == NULL ||
Table->nEntries <= 0 ||
Table->nEntries <= 0 ||
cmsIsToneCurveLinear(Table)) {

_cmsIOPrintf(m, "{ 1 } bind ");
return;
}


// Check if is really an exponential. If so, emit "exp"
gamma = cmsEstimateGamma(Table, 0.001);
Expand Down

0 comments on commit c84094f

Please sign in to comment.