pygensec: Fix init of variable if not specified.
authorJelmer Vernooij <jelmer@samba.org>
Thu, 17 May 2012 21:48:26 +0000 (23:48 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Fri, 18 May 2012 02:50:17 +0000 (04:50 +0200)
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

source4/auth/gensec/pygensec.c

index 5a8744db9635420a779344c99d9b177309e1e01c..a991aef8699015fdfb5b8a8984792c6d48d06cb5 100644 (file)
@@ -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))