IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21138


Ignore:
Timestamp:
Jan 18, 2009, 9:38:49 AM (17 years ago)
Author:
eugene
Message:

avoid segfault: check for null typeStr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMergeArguments.c

    r19360 r21138  
    206206    // Set the type of calibration frame
    207207    const char *typeStr = psMetadataLookupStr(NULL, arguments, "-type"); // Type of calibration
    208     if (strlen(typeStr) <= 0) {
     208    if (!typeStr || strlen(typeStr) <= 0) {
    209209      psError(PS_ERR_UNKNOWN, false, "No -type specified.");
    210210      goto ERROR;
Note: See TracChangeset for help on using the changeset viewer.