diff options
Diffstat (limited to 'source4/scripting/python')
-rw-r--r-- | source4/scripting/python/pyglue.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/scripting/python/pyglue.c b/source4/scripting/python/pyglue.c index b2a9d2c9fd..e1c4feaf16 100644 --- a/source4/scripting/python/pyglue.c +++ b/source4/scripting/python/pyglue.c @@ -123,18 +123,19 @@ static PyObject *py_nttime2unix(PyObject *self, PyObject *args) static PyObject *py_nttime2string(PyObject *self, PyObject *args) { PyObject *ret; - NTTIME nt, nt2; + NTTIME nt; TALLOC_CTX *tmp_ctx; const char *string; - if (!PyArg_ParseTuple(args, "K", &nt)) return NULL; + tmp_ctx = talloc_new(NULL); string = nt_time_string(tmp_ctx, nt); ret = PyString_FromString(string); talloc_free(tmp_ctx); + return ret; } |