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.67 warnings
[alexxy/gromacs.git]
/
src
/
gromacs
/
topology
/
mtop_util.c
diff --git
a/src/gromacs/topology/mtop_util.c
b/src/gromacs/topology/mtop_util.c
index 19fd0927dcb472479cad967a581139c2ada0ad9d..24eb127af26c37942623e8894c977b917d2c1f5a 100644
(file)
--- a/
src/gromacs/topology/mtop_util.c
+++ b/
src/gromacs/topology/mtop_util.c
@@
-411,9
+411,11
@@
void gmx_mtop_atominfo_global(const gmx_mtop_t *mtop, int atnr_global,
{
if (mb >= 0)
{
+ /* cppcheck-suppress nullPointer #6330*/
if (atoms->nres <= mtop->maxres_renum)
{
/* Single residue molecule, keep counting */
+ /* cppcheck-suppress nullPointer #6330*/
maxresnr += mtop->molblock[mb].nmol*atoms->nres;
}
}