diff --git a/src/USER-NETCDF/dump_netcdf.cpp b/src/USER-NETCDF/dump_netcdf.cpp
index c095c4f44b0c4f481ae7b5a7011cdb693b32ed4b..f297ef45eb8a175084d8d31dac499958a078603a 100644
--- a/src/USER-NETCDF/dump_netcdf.cpp
+++ b/src/USER-NETCDF/dump_netcdf.cpp
@@ -317,7 +317,7 @@ void DumpNetCDF::openfile()
           else {
             sprintf(dimstr, "vec%i", dims);
           }
-          if (dims != 1) {
+          if (dims != 1) {
             NCERRX( nc_inq_dimid(ncid, dimstr, &vector_dim[dims]),
                     dimstr );
           }