diff --git a/src/mir/netcdf/Type.cc b/src/mir/netcdf/Type.cc index 5006232da..fa3580191 100644 --- a/src/mir/netcdf/Type.cc +++ b/src/mir/netcdf/Type.cc @@ -17,7 +17,6 @@ #include "mir/netcdf/Type.h" #include -#include #include #include @@ -416,7 +415,7 @@ Value* TypeT::attributeValue(int nc, int id, const char* name, size std::string value(len + 1, '\0'); NC_CALL(nc_get_att_text(nc, id, name, value.data()), path); - auto* v = new ValueT(*this, value); + auto* v = new ValueT(*this, value.data()); return v; }