summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-05-17 23:48:26 +0200
committerJelmer Vernooij <jelmer@samba.org>2012-05-18 04:50:17 +0200
commit01c502ddd41857e2dea9a01ac4afbe48e5ea1fdd (patch)
tree33fc4c5118963139b8367a5b72ff89202005dedd
parente0b924b6d544dc243362fa856452590deddc5532 (diff)
downloadsamba-01c502ddd41857e2dea9a01ac4afbe48e5ea1fdd.tar.gz
samba-01c502ddd41857e2dea9a01ac4afbe48e5ea1fdd.tar.bz2
samba-01c502ddd41857e2dea9a01ac4afbe48e5ea1fdd.zip
pygensec: Fix init of variable if not specified.
Thanks to Wolfgang Sourdeau for reporting this. Bug: https://bugzilla.samba.org/show_bug.cgi?id=8946 Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Fri May 18 04:50:17 CEST 2012 on sn-devel-104
-rw-r--r--source4/auth/gensec/pygensec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/auth/gensec/pygensec.c b/source4/auth/gensec/pygensec.c
index 5a8744db96..a991aef869 100644
--- a/source4/auth/gensec/pygensec.c
+++ b/source4/auth/gensec/pygensec.c
@@ -81,7 +81,7 @@ static PyObject *py_gensec_start_client(PyTypeObject *type, PyObject *args, PyOb
pytalloc_Object *self;
struct gensec_settings *settings;
const char *kwnames[] = { "settings", NULL };
- PyObject *py_settings;
+ PyObject *py_settings = Py_None;
struct gensec_security *gensec;
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|O", discard_const_p(char *, kwnames), &py_settings))