diff --git a/Applications/FileIO/GocadIO/GocadAsciiReader.cpp b/Applications/FileIO/GocadIO/GocadAsciiReader.cpp
index bc728e1eac5765a41c078f26b24cfb05bc3b27ef..6c031b78f3177142142a750953fc9ddae200bf99 100644
--- a/Applications/FileIO/GocadIO/GocadAsciiReader.cpp
+++ b/Applications/FileIO/GocadIO/GocadAsciiReader.cpp
@@ -261,7 +261,6 @@ bool parseNodes(std::ifstream& in,
                 MeshLib::Properties& mesh_prop)
 {
     NodeType t = NodeType::UNSPECIFIED;
-    double value;
     std::vector<std::string> const array_names =
         mesh_prop.getPropertyVectorNames();
     std::streampos pos = in.tellg();
@@ -307,6 +306,7 @@ bool parseNodes(std::ifstream& in,
                 {
                     continue;
                 }
+                double value;
                 sstr >> value;
                 mesh_prop.getPropertyVector<double>(name)->push_back(value);
             }