IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 25, 2010, 11:23:53 AM (16 years ago)
Author:
Paul Price
Message:

Can only close things if we have the configuration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStack.c

    r27075 r27076  
    100100
    101101        // Ensure everything closes
    102         ppStackFileActivation(config, PPSTACK_FILES_PREPARE, true);
    103         ppStackFileActivation(config, PPSTACK_FILES_CONVOLVE, true);
    104         ppStackFileActivation(config, PPSTACK_FILES_COMBINE, true);
    105         ppStackFileActivation(config, PPSTACK_FILES_PHOT, true);
    106         if (!ppStackFilesIterateUp(config)) {
    107             psErrorStackPrint(stderr, "Unable to close files.");
     102        if (config) {
     103            ppStackFileActivation(config, PPSTACK_FILES_PREPARE, true);
     104            ppStackFileActivation(config, PPSTACK_FILES_CONVOLVE, true);
     105            ppStackFileActivation(config, PPSTACK_FILES_COMBINE, true);
     106            ppStackFileActivation(config, PPSTACK_FILES_PHOT, true);
     107            if (!ppStackFilesIterateUp(config)) {
     108                psErrorStackPrint(stderr, "Unable to close files.");
     109            }
    108110        }
    109111
Note: See TracChangeset for help on using the changeset viewer.