IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12922


Ignore:
Timestamp:
Apr 19, 2007, 11:11:11 AM (19 years ago)
Author:
rhl
Message:

Don't crash if size <= 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotAddNoise.c

    r12792 r12922  
    2222    float SIZE = psMetadataLookupF32 (&status, recipe, "NOISE.SIZE");
    2323    PS_ASSERT (status, false);
     24
     25    if (SIZE <= 0) {
     26       return true;
     27    }
    2428
    2529    float GAIN = psMetadataLookupF32(&status, readout->parent->concepts, "CELL.GAIN"); // Cell gain
Note: See TracChangeset for help on using the changeset viewer.