IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9918


Ignore:
Timestamp:
Nov 8, 2006, 5:22:38 PM (20 years ago)
Author:
jhoblitt
Message:

check fclose()'s return status

File:
1 edited

Legend:

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

    r9917 r9918  
    1010*  @author Eric Van Alst, MHPCC
    1111*
    12 *  @version $Revision: 1.114 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2006-11-09 03:06:56 $
     12*  @version $Revision: 1.115 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2006-11-09 03:22:38 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    17841784    }
    17851785    fprintf(file, "%s", fileString);
    1786     fclose(file);
    17871786    psFree(fileString);
     1787    if (fclose(file) == EOF) {
     1788        psError(PS_ERR_IO, true,
     1789                "Failed to close file, %s\n", filename);
     1790        return false;
     1791    }
    17881792    return true;
    17891793}
Note: See TracChangeset for help on using the changeset viewer.