IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7661


Ignore:
Timestamp:
Jun 23, 2006, 2:18:48 PM (20 years ago)
Author:
jhoblitt
Message:

change psDBCleanup() to quietly handle NULLs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/db/psDB.c

    r7660 r7661  
    1212 *  @author Joshua Hoblitt
    1313 *
    14  *  @version $Revision: 1.66 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2006-06-23 22:53:56 $
     14 *  @version $Revision: 1.67 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-06-24 00:18:48 $
    1616 *
    1717 *  Copyright 2005 Joshua Hoblitt, University of Hawaii
     
    181181void psDBCleanup(psDB *dbh)
    182182{
    183     PS_ASSERT_PTR_NON_NULL(dbh, );
     183    // quietly handle NULLs
     184    if (!dbh) {
     185        return;
     186    }
    184187
    185188    // Attempt to close specified database connection
Note: See TracChangeset for help on using the changeset viewer.