git.samba.org
/
jerry
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45562b8
)
Fixed compiler warning.
author
Tim Potter
<tpot@samba.org>
Mon, 27 May 2002 06:28:45 +0000
(06:28 +0000)
committer
Tim Potter
<tpot@samba.org>
Mon, 27 May 2002 06:28:45 +0000
(06:28 +0000)
source/python/py_spoolss_forms_conv.c
patch
|
blob
|
history
diff --git
a/source/python/py_spoolss_forms_conv.c
b/source/python/py_spoolss_forms_conv.c
index 1b006cbf51bb71628fdbbf1dea42111d2f597a4b..6ef953cbc9bbfa7430a5d45f12f1514aa288df41 100644
(file)
--- a/
source/python/py_spoolss_forms_conv.c
+++ b/
source/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");