pycredentials: Allow optional "name" argument to get_named_ccache() to be missing
authorAndrew Bartlett <abartlet@samba.org>
Thu, 6 Jul 2017 02:44:46 +0000 (14:44 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 27 Jul 2017 22:25:13 +0000 (00:25 +0200)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
auth/credentials/pycredentials.c

index caf30bff4925e74e47f8750ca78757598af2efff..0a29c5863221143897a6262f247244a94338fe73 100644 (file)
@@ -526,7 +526,7 @@ static PyObject *PyCredentialCacheContainer_from_ccache_container(struct ccache_
 static PyObject *py_creds_get_named_ccache(PyObject *self, PyObject *args)
 {
        PyObject *py_lp_ctx = Py_None;
-       char *ccache_name;
+       char *ccache_name = NULL;
        struct loadparm_context *lp_ctx;
        struct ccache_container *ccc;
        struct tevent_context *event_ctx;