aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorCosimo Lupo <cosimo.lupo@daltonmaag.com>2015-08-10 18:44:06 +0100
committerCosimo Lupo <cosimo.lupo@daltonmaag.com>2015-08-11 11:09:47 +0100
commitf14172902b9c21f4ed47a35ce467727f02867280 (patch)
tree51469347c894d3cd00ab0f129a17174e69887345 /python
parent55a40ce214be844b8860ef46e3ba321324542679 (diff)
downloadbrotli-f14172902b9c21f4ed47a35ce467727f02867280.zip
brotli-f14172902b9c21f4ed47a35ce467727f02867280.tar.gz
brotli-f14172902b9c21f4ed47a35ce467727f02867280.tar.bz2
[brotlimodule.cc] fix RuntimeError on OS X: keyword list must be NULL terminated
Sorry, my fault...
Diffstat (limited to 'python')
-rw-r--r--python/brotlimodule.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/brotlimodule.cc b/python/brotlimodule.cc
index c1d669a..066219c 100644
--- a/python/brotlimodule.cc
+++ b/python/brotlimodule.cc
@@ -110,7 +110,7 @@ static PyObject* brotli_compress(PyObject *self, PyObject *args, PyObject *keywd
int lgblock = -1;
int ok;
- static const char *kwlist[] = {"string", "mode", "quality", "lgwin", "lgblock"};
+ static const char *kwlist[] = {"string", "mode", "quality", "lgwin", "lgblock", NULL};
ok = PyArg_ParseTupleAndKeywords(args, keywds, "s#|O&O&O&O&:compress",
const_cast<char **>(kwlist),