IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6285


Ignore:
Timestamp:
Feb 1, 2006, 12:22:31 PM (20 years ago)
Author:
jhoblitt
Message:

change PX_FRAME_SEARCH() to gracefully handle not finding any Imfiles

File:
1 edited

Legend:

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

    r6284 r6285  
    8989    allFrames->n = 0; \
    9090 \
    91     psMetadata *where = psMetadataAlloc (); \
    9291    for (int i = 0; i < exposures->n; i++) { \
    9392        exptype##Row *exposure = exposures->data[i]; \
    9493\
     94        psMetadata *where = psMetadataAlloc (); \
    9595        psMetadataAddStr(where, PS_LIST_TAIL, "exp_id", PS_META_REPLACE, "==", \
    9696            exposure->exp_id); \
     
    9898        psArray *images = imfiletype##SelectRowObjects(config->database, where, \
    9999            MAX_ROWS); \
     100        psFree(where); \
    100101        if (!images) { \
    101             psError(PS_ERR_UNKNOWN, false, "database access failed"); \
     102            psError(PS_ERR_UNKNOWN, false, "no imfiletype rows found"); \
     103            psFree(allFrames); \
    102104 \
    103105            return NULL; \
Note: See TracChangeset for help on using the changeset viewer.