Changeset 12672


Ignore:
Timestamp:
11/30/11 14:58:36 (13 years ago)
Author:
lyard
Message:
bug fix
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Fits.cc

    r12639 r12672  
    2020#include "MessageImp.h"
    2121
    22 
    2322#include <sys/stat.h> //for file stats
    2423#include <cstdio> // for file rename
     24#include <cerrno>
    2525
    2626using namespace std;
     
    214214        fFile->WriteKeyNT("COMMENT", fTableDesc, "");
    215215        //END COMMENTS UPDATE
    216         return fFile->GetNumRows()==0 ? true : WriteHeaderKeys();
     216        return fFile->GetNumRows()==0 ? WriteHeaderKeys() : true;
    217217    }
    218218    catch (const CCfits::FitsException &e)
Note: See TracChangeset for help on using the changeset viewer.