IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6162


Ignore:
Timestamp:
Jan 21, 2006, 9:17:41 PM (20 years ago)
Author:
jhoblitt
Message:

add error checking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/p2searchPendingFrames.c

    r6157 r6162  
    108108    }
    109109
     110    if (where->list->n < 1) {
     111        psFree(where);
     112        where = NULL;
     113    }
     114
    110115    psArray *imfiles = p2PendingImfileSelectRowObjects(config->database, where,
    111116        MAX_ROWS);
    112117    psFree(where);
     118    if (!imfiles) {
     119        psError(PS_ERR_UNKNOWN, false, "no rawScienceExp rows found");
     120
     121        return NULL;
     122    }
    113123
    114124    return imfiles;
Note: See TracChangeset for help on using the changeset viewer.