diff --git a/Applications/FileIO/PetrelInterface.cpp b/Applications/FileIO/PetrelInterface.cpp
index 5fbc8a43a3a0505da0411b62d95cae247845ebf5..4eb9c70ac9de6c77d6efe8f5c12789eec819afb8 100644
--- a/Applications/FileIO/PetrelInterface.cpp
+++ b/Applications/FileIO/PetrelInterface.cpp
@@ -92,10 +92,8 @@ void PetrelInterface::readPetrelSurface(std::istream &in)
         // read header
         // read Version string
         in.getline(buffer, MAX_COLS_PER_ROW);
-        line = buffer;
         // read string BEGIN HEADER
         in.getline(buffer, MAX_COLS_PER_ROW);
-        line = buffer;
 
         in.getline(buffer, MAX_COLS_PER_ROW);
         line = buffer;