Fix cppcheck-1.67 warnings
[alexxy/gromacs.git] / src / gromacs / gmxana / gmx_dyndom.c
index 5a727cb1c2317a7e5391eabde550148b8bd02964..63fb697756d84766509652fadefec326d89c0a35 100644 (file)
@@ -208,6 +208,11 @@ int gmx_dyndom(int argc, char *argv[])
         return 0;
     }
 
+    if (maxangle == 0)
+    {
+        gmx_fatal(FARGS, "maxangle not given");
+    }
+
     get_stx_coordnum (opt2fn("-f", NFILE, fnm), &natoms);
     init_t_atoms(&atoms, natoms, TRUE);
     snew(x, natoms);