From 12bd14e1e7140993487c8beb77d5b4fd59af8310 Mon Sep 17 00:00:00 2001 From: Amy Bowersox Date: Tue, 10 Dec 2019 13:17:46 -0700 Subject: [PATCH] more disco debugging --- src/ep_devctxt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ep_devctxt.c b/src/ep_devctxt.c index 63250fa..f87bc85 100755 --- a/src/ep_devctxt.c +++ b/src/ep_devctxt.c @@ -204,11 +204,11 @@ static void devctxt_dealloc(DevCtxtObject *self) static int devctxt_init(DevCtxtObject *self, PyObject *args, PyObject *kwds) { - static char *kwlist[] = { "type" }; - char *type; + static char *kwlist[] = { "type", NULL }; + const char *type; Log(LDEBUG, "Creating a new DevCtxt object"); - if (!PyArg_ParseTupleAndKeywords(args, kwds, "|s", kwlist, &type)) + if (!PyArg_ParseTupleAndKeywords(args, kwds, "$s", kwlist, &type)) return -1; Log(LDEBUG,"type argument is '%s'", type); if (strcmp(type, "screen") == 0)