forked from lijiext/lammps
Fixes coverity issue CID 179426
This commit is contained in:
parent
a7d790a827
commit
084626e60b
|
@ -313,6 +313,9 @@ void PythonImpl::invoke_function(int ifunc, char *result)
|
|||
}
|
||||
} else if (itype == PTR) {
|
||||
pValue = PY_VOID_POINTER(lmp);
|
||||
} else {
|
||||
PyGILState_Release(gstate);
|
||||
error->all(FLERR,"Unsupported variable type");
|
||||
}
|
||||
PyTuple_SetItem(pArgs,i,pValue);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue