IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5520


Ignore:
Timestamp:
Nov 15, 2005, 3:59:14 PM (21 years ago)
Author:
desonia
Message:

made change due to change in psMetadataLookupStr reference counting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/fits/tst_psFits.c

    r5519 r5520  
    66*  @author Robert DeSonia, MHPCC
    77*
    8 *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2005-11-15 22:20:16 $
     8*  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2005-11-16 01:59:14 $
    1010*
    1111*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    13251325            return 7;
    13261326        }
    1327         if (strncmp(psMetadataLookupStr(NULL,md,"MYSTR"),strValue[row],
     1327        psString mystr = psMetadataLookupStr(NULL,md,"MYSTR");
     1328        if (strncmp(mystr,strValue[row],
    13281329                    strlen(strValue[row])) != 0) {
    13291330            psError(PS_ERR_UNKNOWN, false,
     
    13331334        }
    13341335        psFree(md);
     1336        psFree(mystr);
    13351337    }
    13361338
Note: See TracChangeset for help on using the changeset viewer.