IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6401


Ignore:
Timestamp:
Feb 9, 2006, 10:23:15 AM (20 years ago)
Author:
Paul Price
Message:

Fixing SEGV from !chip.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_rel9_p0/psModules/src/astrom/pmFPAWrite.c

    r6124 r6401  
    4242    for (int i = 0; i < chips->n; i++) {
    4343        pmChip *chip = chips->data[i];  // The component chip
    44         if (chip->exists && chip->process) {
     44        if (chip && chip->exists && chip->process) {
    4545            psTrace(__func__, 1, "Writing out chip %d...\n", i);
    4646
     
    5050            for (int j = 0; j < cells->n; j++) {
    5151                pmCell *cell = cells->data[j]; // The component cell
    52                 if (cell->exists && cell->process) {
     52                if (cell && cell->exists && cell->process) {
    5353                    psTrace(__func__, 2, "Writing out cell, %d...\n", j);
    5454
Note: See TracChangeset for help on using the changeset viewer.