diff --git a/src/fits/GFitsTable.cpp b/src/fits/GFitsTable.cpp index 666eb60..5ee346d 100644 --- a/src/fits/GFitsTable.cpp +++ b/src/fits/GFitsTable.cpp @@ -804,8 +804,9 @@ void GFitsTable::data_open(void* vptr) throw GException::fits_error(G_DATA_OPEN, 0, msg); } } - else + else { status = 0; + } // Get column unit (optional, leave blank if not found) char unit[80];