IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8836


Ignore:
Timestamp:
Sep 18, 2006, 5:32:10 PM (20 years ago)
Author:
Paul Price
Message:

Allowing NULL output string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/types/psMetadataConfig.c

    r8831 r8836  
    1010*  @author Eric Van Alst, MHPCC
    1111*
    12 *  @version $Revision: 1.88 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2006-09-19 00:45:28 $
     12*  @version $Revision: 1.89 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2006-09-19 03:32:10 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    13721372        break;
    13731373    case PS_DATA_STRING:
    1374         psStringAppend(&content, "%-15s  %-8s  %-15s",
    1375                        item->name, "STR", item->data.str);
     1374        if (item->data.str) {
     1375            psStringAppend(&content, "%-15s  %-8s  %-15s",
     1376                           item->name, "STR", item->data.str);
     1377        } else {
     1378            psStringAppend(&content, "%-15s  %-8s  %-15s",
     1379                           item->name, "STR", "NULL");
     1380        }
    13761381        if (item->comment && strncmp(item->comment,"",2)) {
    13771382            psStringAppend(&content, "  # %s", item->comment);
Note: See TracChangeset for help on using the changeset viewer.