IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 29, 2005, 10:53:49 AM (21 years ago)
Author:
rhl
Message:

Make poisRejectStamps return a list of rejected stamps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pois/src/poisFindStamps.c

    r3802 r3813  
    3333    if (stamps == NULL) {
    3434        stamps = psArrayAlloc(nsx * nsy);
    35         // Initialise
     35                                        // Initialise; should be done by psArrayAlloc
    3636        for (int i = 0; i < nsx * nsy; i++) {
    37             stamps->data[i] = poisStampAlloc();
     37            stamps->data[i] = NULL;
    3838        }
    3939    }
     
    4444        for (int j = 0; j < nsy; j++) {
    4545            poisStamp *stamp = stamps->data[num]; // The stamp
     46            if (stamp == NULL) {
     47                stamp = stamps->data[num] = poisStampAlloc();
     48            }
    4649
    4750            // Only find a new stamp if we need to
Note: See TracChangeset for help on using the changeset viewer.