summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/hashstring.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/hashstring.cc b/python/hashstring.cc
index 6f70ac7e..d303049a 100644
--- a/python/hashstring.cc
+++ b/python/hashstring.cc
@@ -25,8 +25,8 @@
static PyObject *HashString_NEW(PyTypeObject *type,PyObject *Args,
PyObject *kwds)
{
- const char *Hash;
- const char *Type;
+ char *Type = NULL;
+ char *Hash = NULL;
char *kwlist[] = {"type", "hash", NULL};
if (PyArg_ParseTupleAndKeywords(Args, kwds, "s|s", kwlist, &Type,
&Hash) == 0)