IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30532


Ignore:
Timestamp:
Feb 9, 2011, 8:51:13 AM (15 years ago)
Author:
Serge CHASTEL
Message:

ppMopsMerge.c: Bug fix when all detections are NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppTranslate/src/ppMopsMerge.c

    r28623 r30532  
    3535
    3636    ppMopsDetections *merged = NULL;    // Merged list
    37     int num = 1;                                                         // Number of merged files
     37    int num = 0;                                                         // Number of merged files
    3838    for (int i = 0; i < detections->n; i++) {
    3939        ppMopsDetections *det = detections->data[i]; // Detections of interest
     
    163163    }
    164164
     165    if (num == 0) {
     166        //All detections were NULL?!
     167        psTrace("ppMops.merge", 3, "All %d detections were NULL\n", detections->n);
     168        return NULL;
     169    }
    165170    psTrace("ppMops.merge", 2, "%ld sources in merged detections list\n", merged->num);
    166171
Note: See TracChangeset for help on using the changeset viewer.