biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix cppcheck 1.64 warnings
[alexxy/gromacs.git]
/
src
/
gromacs
/
gmxana
/
gmx_vanhove.c
diff --git
a/src/gromacs/gmxana/gmx_vanhove.c
b/src/gromacs/gmxana/gmx_vanhove.c
index 934099757d8900e7fc525a40828ec284e77db8eb..640d786db9000a5dbbf731f11a837e29bf90b4de 100644
(file)
--- a/
src/gromacs/gmxana/gmx_vanhove.c
+++ b/
src/gromacs/gmxana/gmx_vanhove.c
@@
-38,6
+38,7
@@
#include <config.h>
#endif
+#include <assert.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
@@
-200,6
+201,7
@@
int gmx_vanhove(int argc, char *argv[])
srenew(sbox, nalloc);
srenew(sx, nalloc);
}
+ assert(time != NULL); assert(sbox != NULL);
time[nfr] = t;
copy_mat(box, sbox[nfr]);