diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-07-15 00:46:48 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-07-15 00:46:48 +0200 |
| commit | 7009c7dff71064526dafd0ed114f39c970448da0 (patch) | |
| tree | f6416d09030eb142f06a996035eff9e5b6e84c91 /python | |
| parent | 9e3bab4299962d51cabce425e8b82804008b73e6 (diff) | |
| download | python-apt-7009c7dff71064526dafd0ed114f39c970448da0.tar.gz | |
python/hashstring.cc: Do not use const char*, but use char* with default to NULL.
Diffstat (limited to 'python')
| -rw-r--r-- | python/hashstring.cc | 4 |
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) |
