Changeset 2844 in Sophya


Ignore:
Timestamp:
Nov 18, 2005, 7:07:30 PM (20 years ago)
Author:
ansari
Message:

correction 2 petits bugs ds nouveau fits - Reza 18/11/2005

Location:
trunk/SophyaExt/FitsIOServer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/FitsIOServer/fitsarrhand.h

    r2820 r2844  
    5353      for(int_4 id=0; id<dobj->NbDimensions(); id++)
    5454        naxes[id] = dobj->Size(id);
    55       T x;
     55      T x = 0;
    5656      os.CreateImageHDU(FitsTypes::ImageType(x), dobj->NbDimensions(), naxes);
    5757      os.WriteHeaderRecords(dobj->Info());
  • trunk/SophyaExt/FitsIOServer/fitsinoutfile.cc

    r2843 r2844  
    430430    fits_get_colname(FitsPtr(), CASEINSEN, "*", colname, &colnum, &status);
    431431    if (status == COL_NOT_FOUND)  break;
    432     if (status != COL_NOT_UNIQUE) {
     432    if ( (status != COL_NOT_UNIQUE) && (status != 0) ) {
    433433      char buff[32];
    434434      fits_get_errstatus(status, buff);
     
    445445    repcnt.push_back(repeat);
    446446    width.push_back(colw);
     447    if (status == 0)  break;
    447448  }
    448449  return colnames.size();
Note: See TracChangeset for help on using the changeset viewer.