IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7033


Ignore:
Timestamp:
May 1, 2006, 4:03:48 PM (20 years ago)
Author:
Paul Price
Message:

Supporting NULL for PS_DATA_STRING metadata item.

File:
1 edited

Legend:

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

    r7032 r7033  
    77 *  @author David Robbins, MHPCC
    88 *
    9  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2006-05-02 02:01:53 $
     9 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2006-05-02 02:03:48 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    311311        return arg->data.B ? 4 : 5;
    312312    case PS_DATA_STRING:
    313         return strlen(arg->data.V);
     313        return arg->data.V ? strlen(arg->data.V) : 0;
    314314    default:
    315315        psAbort(__func__, "Argument type (%x) is not supported.\n", arg->type);
Note: See TracChangeset for help on using the changeset viewer.