silence codeql warnings

This commit is contained in:
Axel Kohlmeyer
2021-05-10 03:45:00 -04:00
parent c91563b797
commit de3a49ac4f
2 changed files with 6 additions and 2 deletions

View File

@ -778,6 +778,8 @@ class lammps(object):
elif dtype == LAMMPS_STRING:
self.lib.lammps_extract_global.restype = c_char_p
target_type = str
else:
target_type = None
ptr = self.lib.lammps_extract_global(self.lmp, name)
if ptr: