From 26b006455ef51ef7b238f6c90ae624a1ae1e3af4 Mon Sep 17 00:00:00 2001 From: Stuart Gathman Date: Fri, 29 May 2009 18:25:59 +0000 Subject: [PATCH] Null terminate keyword list. --- miltermodule.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/miltermodule.c b/miltermodule.c index 9b7b101..92e9f94 100644 --- a/miltermodule.c +++ b/miltermodule.c @@ -35,6 +35,9 @@ $ python setup.py help libraries=["milter","smutil","resolv"] * $Log$ + * Revision 1.19 2009/05/28 18:36:42 customdesigned + * Support new callbacks, including negotiate + * * Revision 1.18 2009/05/21 21:53:05 customdesigned * First cut at support unknown, data, negotiate callbacks. * @@ -907,7 +910,7 @@ Required before main() is called."; static PyObject * milter_register(PyObject *self, PyObject *args, PyObject *kwds) { - static char *kwlist[] = { "name","unknown","data","negotiate" }; + static char *kwlist[] = { "name","unknown","data","negotiate", NULL }; static PyObject** const cbp[3] = { &unknown_callback, &data_callback, &negotiate_callback }; PyObject *cb[3] = { NULL, NULL, NULL };