IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12316


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

Check on empty hash table.

File:
1 edited

Legend:

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

    r12315 r12316  
    1212*  @author GLG, MHPCC
    1313*
    14 *  @version $Revision: 1.41 $ $Name: not supported by cvs2svn $
    15 *  @date $Date: 2007-03-08 19:55:46 $
     14*  @version $Revision: 1.42 $ $Name: not supported by cvs2svn $
     15*  @date $Date: 2007-03-08 19:58:37 $
    1616*
    1717*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    232232    assert(table->n >= 0);
    233233    assert(key && strlen(key) > 0);
     234
     235    if (table->n == 0) {
     236        return NULL;
     237    }
    234238
    235239    // This hash algorithm is from Sedgewick.  NOTE: must reread to ensure that
Note: See TracChangeset for help on using the changeset viewer.