diff options
| -rw-r--r-- | python/tag.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/tag.cc b/python/tag.cc index 4fcdf067..1ad0a465 100644 --- a/python/tag.cc +++ b/python/tag.cc @@ -191,6 +191,8 @@ static PyObject *TagSecExists(PyObject *Self,PyObject *Args) static int TagSecContains(PyObject *Self,PyObject *Arg) { + if (PyString_Check(Arg) == 0) + return 0; const char *Name = PyString_AsString(Arg); const char *Start; const char *Stop; |
