diff options
Diffstat (limited to 'source3/python')
-rw-r--r-- | source3/python/py_spoolss_forms_conv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/python/py_spoolss_forms_conv.c b/source3/python/py_spoolss_forms_conv.c index 1b006cbf51..6ef953cbc9 100644 --- a/source3/python/py_spoolss_forms_conv.c +++ b/source3/python/py_spoolss_forms_conv.c @@ -58,8 +58,9 @@ BOOL py_to_FORM(FORM *form, PyObject *dict) PyObject *obj, *dict_copy = PyDict_Copy(dict); char *name; - if (!(obj = PyDict_GetItemString(dict, "name")) || - !PyString_Check(obj)) + obj = PyDict_GetItemString(dict, "name"); + + if (!obj || !PyString_Check(obj)) return False; PyDict_DelItemString(dict_copy, "level"); |