From 3ec6d94f959d55f83dc065aee99abf49603a118b Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Mon, 27 May 2002 06:28:45 +0000 Subject: Fixed compiler warning. (This used to be commit 736eb3c7485c0e65a463f14f27ada55a1a3fd453) --- source3/python/py_spoolss_forms_conv.c | 5 +++-- 1 file 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"); -- cgit