IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8049


Ignore:
Timestamp:
Aug 1, 2006, 4:28:04 PM (20 years ago)
Author:
Paul Price
Message:

Getting rid of annoying additional error message when a bad option is provided.

File:
1 edited

Legend:

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

    r7300 r8049  
    77 *  @author David Robbins, MHPCC
    88 *
    9  *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2006-06-02 21:33:34 $
     9 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2006-08-02 02:28:04 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    228228failed:
    229229    // We need to copy everything back
    230     while (psMetadataRemoveIndex(arguments, PS_LIST_TAIL))
    231         ;
     230    if (psListLength(arguments->list) > 0) {
     231        while (psMetadataRemoveIndex(arguments, PS_LIST_TAIL))
     232            ;
     233    }
    232234    psMetadataCopy(arguments, oldArgs);
    233235    psFree(multiFlag);
Note: See TracChangeset for help on using the changeset viewer.