summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-07-15 00:46:48 +0200
committerJulian Andres Klode <jak@debian.org>2009-07-15 00:46:48 +0200
commit7009c7dff71064526dafd0ed114f39c970448da0 (patch)
treef6416d09030eb142f06a996035eff9e5b6e84c91
parent9e3bab4299962d51cabce425e8b82804008b73e6 (diff)
downloadpython-apt-7009c7dff71064526dafd0ed114f39c970448da0.tar.gz
python/hashstring.cc: Do not use const char*, but use char* with default to NULL.
-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)