Fixes coverity issue CID 179426

This commit is contained in:
Richard Berger 2017-05-22 17:36:16 -04:00
parent a7d790a827
commit 084626e60b
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}