IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 10, 2004, 3:24:15 PM (22 years ago)
Author:
desonia
Message:

fixed errorneous warning in psListAdd.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psList.c

    r2698 r2699  
    66 *  @author Robert Daniel DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-12-11 01:19:06 $
     8 *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-12-11 01:24:14 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    257257    }
    258258
    259     if (location >= (int)list->size) {
     259    if (location > 0 && location >= (int)list->size) {
    260260        psLogMsg(__func__,PS_LOG_WARN,
    261261                 "Specified location, %d, is beyond the end of the list.  "
Note: See TracChangeset for help on using the changeset viewer.