From 7009c7dff71064526dafd0ed114f39c970448da0 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 15 Jul 2009 00:46:48 +0200 Subject: python/hashstring.cc: Do not use const char*, but use char* with default to NULL. --- python/hashstring.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python') 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) -- cgit v1.2.3