IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 30, 2011, 12:47:39 PM (15 years ago)
Author:
bills
Message:

save a line of code and add a couple comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/dqstatstool.c

    r31798 r31800  
    622622      }
    623623      else if (!strcmp(colType,"PS_DATA_STRING")) {
    624         if (rowItem->data.str) {
    625             success = psMetadataAddStr(tableRow,PS_LIST_TAIL,colName,0,"",rowItem->data.str);
    626         } else {
     624        if (rowItem->data.str == NULL) {
     625            // psFits blows up on a string with a null value.
     626            // Arguably I should fix psLib.db should handle this
    627627            rowItem->data.str = psStringCopy("NULL");
    628             success = psMetadataAddStr(tableRow,PS_LIST_TAIL,colName,0,"",rowItem->data.str);
    629628        }
     629        success = psMetadataAddStr(tableRow,PS_LIST_TAIL,colName,0,"",rowItem->data.str);
    630630      }
    631631      else if (!strcmp(colType,"PS_DATA_TIME")) {
Note: See TracChangeset for help on using the changeset viewer.