IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35165


Ignore:
Timestamp:
Feb 13, 2013, 2:33:32 PM (13 years ago)
Author:
watersc1
Message:

Fix bug that caused segfaults. Do not write to a mask if that mask is NULL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmStack.c

    r35082 r35165  
    14181418      }
    14191419      combined->image->data.F32[y][x] = stats->robustMedian;
    1420       combined->mask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] = 0;
     1420      if (combined->mask) {
     1421        combined->mask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] = 0;
     1422      }
    14211423#if (0)
    14221424      if ((x == 59)&&(y > 40)&&(y < 50)) {
Note: See TracChangeset for help on using the changeset viewer.