IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26558


Ignore:
Timestamp:
Jan 11, 2010, 1:27:30 PM (16 years ago)
Author:
bills
Message:

avoid segv if input vector is NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroZeroPoint.c

    r26394 r26558  
    147147
    148148    // XXX make this depend on the mode?
    149     if (dMag->n < 3) {
     149    if (!dMag || dMag->n < 3) {
    150150      fprintf (stderr, "zero point NaN +/- NaN\n");
    151151      return false;
Note: See TracChangeset for help on using the changeset viewer.