IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12314


Ignore:
Timestamp:
Mar 8, 2007, 9:51:59 AM (19 years ago)
Author:
Paul Price
Message:

Incorrectly removed check on empty list.

File:
1 edited

Legend:

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

    r12311 r12314  
    77 *  @author Joshua Hoblitt, University of Hawaii
    88 *
    9  *  @version $Revision: 1.65 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2007-03-08 04:10:45 $
     9 *  @version $Revision: 1.66 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2007-03-08 19:51:59 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    437437    PS_ASSERT_LIST_NON_NULL(list, NULL);
    438438
     439    if (list->head == NULL) { // list empty?
     440        psError(PS_ERR_BAD_PARAMETER_NULL, true,
     441                _("Specified psList reference is empty."));
     442        return NULL;
     443    }
     444
    439445    psListIterator* iterator = list->iterators->data[0];
    440446
Note: See TracChangeset for help on using the changeset viewer.