IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16204


Ignore:
Timestamp:
Jan 23, 2008, 12:40:54 PM (18 years ago)
Author:
Paul Price
Message:

Guarding against SEGV on !options.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/fits/psFits.c

    r16185 r16204  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.77 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2008-01-23 03:08:03 $
     9 *  @version $Revision: 1.78 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2008-01-23 22:40:54 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    296296    }
    297297
    298     bool ignoreCI = (options->conventions.compression &&
    299                      (strcmp(extname, "COMPRESSED_IMAGE") != 0)); // Ignore COMPRESSED_IMAGE extension name?
    300     char *extword = (options->extword ? options->extword : "EXTNAME"); // Word to use as extension name
     298    // Ignore COMPRESSED_IMAGE extension name?
     299    bool ignoreCI = (!options || (options->conventions.compression &&
     300                                  (strcmp(extname, "COMPRESSED_IMAGE") != 0)));
     301    char *extword = (options && options->extword) ? options->extword : "EXTNAME"; // Word for extension name
    301302
    302303#if 0
Note: See TracChangeset for help on using the changeset viewer.