summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-05-27 06:28:45 +0000
committerTim Potter <tpot@samba.org>2002-05-27 06:28:45 +0000
commit3ec6d94f959d55f83dc065aee99abf49603a118b (patch)
treeb5243fbc3a5c2b232793e2818e5e571c86c66ab6
parentb403e16e09db52b31bdf09a97fe81b82835da129 (diff)
downloadsamba-3ec6d94f959d55f83dc065aee99abf49603a118b.tar.gz
samba-3ec6d94f959d55f83dc065aee99abf49603a118b.tar.bz2
samba-3ec6d94f959d55f83dc065aee99abf49603a118b.zip
Fixed compiler warning.
(This used to be commit 736eb3c7485c0e65a463f14f27ada55a1a3fd453)
-rw-r--r--source3/python/py_spoolss_forms_conv.c5
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");