Fix cppcheck 1.64 warnings
[alexxy/gromacs.git] / src / gromacs / gmxana / gmx_current.c
index 19bd0a0beac693dd1fe3a5b951e67b1e010e4dfc..171a7a91c24a01075cead154acbab4a26a0306b1 100644 (file)
@@ -36,6 +36,7 @@
 #include <config.h>
 #endif
 
+#include <assert.h>
 #include <stdlib.h>
 
 #include "gromacs/commandline/pargs.h"
@@ -471,7 +472,7 @@ static void dielectric(FILE *fmj, FILE *fmd, FILE *outf, FILE *fcur, FILE *mcor,
                 xshfr[i] = 0.0;
             }
         }
-
+        assert(time != NULL);
 
 
         if (nfr == 0)