IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 5, 2007, 4:14:55 PM (19 years ago)
Author:
Paul Price
Message:

Fixing SEGV from mask being NULL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageGeomManip.c

    r11686 r12248  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2007-02-07 23:52:54 $
     12 *  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2007-03-06 02:14:55 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    137137                } \
    138138                vec->n = n; \
    139                 maskVec->n = n; \
     139                if (maskVec) { \
     140                    maskVec->n = n; \
     141                } \
    140142                psVectorStats(myStats, vec, NULL, maskVec, maskVal); \
    141143                outRowData[col] = (ps##TYPE)psStatsGetValue(myStats, statistic); \
Note: See TracChangeset for help on using the changeset viewer.