IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31798


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

handle case where a string has null value by using the string "NULL"

File:
1 edited

Legend:

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

    r30466 r31798  
    622622      }
    623623      else if (!strcmp(colType,"PS_DATA_STRING")) {
    624         success = psMetadataAddStr(tableRow,PS_LIST_TAIL,colName,0,"",rowItem->data.str);
     624        if (rowItem->data.str) {
     625            success = psMetadataAddStr(tableRow,PS_LIST_TAIL,colName,0,"",rowItem->data.str);
     626        } else {
     627            rowItem->data.str = psStringCopy("NULL");
     628            success = psMetadataAddStr(tableRow,PS_LIST_TAIL,colName,0,"",rowItem->data.str);
     629        }
    625630      }
    626631      else if (!strcmp(colType,"PS_DATA_TIME")) {
Note: See TracChangeset for help on using the changeset viewer.