IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28517 for trunk/psModules


Ignore:
Timestamp:
Jun 25, 2010, 4:51:23 PM (16 years ago)
Author:
Paul Price
Message:

Guard against SEGV if 'flux' is not defined for some bizarre reason.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSourcePhotometry.c

    r28426 r28517  
    393393    psImage *mask     = source->maskObj;
    394394
     395    if (!flux || !variance || !mask) {
     396        return false;
     397    }
     398
    395399    for (int iy = 0; iy < flux->numRows; iy++) {
    396400        for (int ix = 0; ix < flux->numCols; ix++) {
Note: See TracChangeset for help on using the changeset viewer.