diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-06-25 16:44:55 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-06-25 16:44:55 +0200 |
| commit | 35c637e1d9a78fe88c935f3545f98f68b32403f4 (patch) | |
| tree | 63a7ad85b66783420406ebbc3de44f3d9215957f /python | |
| parent | b0e6c5bdad8b182d4144ccf929e919bb687ac98c (diff) | |
| download | python-apt-35c637e1d9a78fe88c935f3545f98f68b32403f4.tar.gz | |
python/tag.cc: Store the return value of PyString_AsString as const char*.
Diffstat (limited to 'python')
| -rw-r--r-- | python/tag.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/tag.cc b/python/tag.cc index 74857fe5..4fcdf067 100644 --- a/python/tag.cc +++ b/python/tag.cc @@ -191,7 +191,7 @@ static PyObject *TagSecExists(PyObject *Self,PyObject *Args) static int TagSecContains(PyObject *Self,PyObject *Arg) { - char *Name = PyString_AsString(Arg); + const char *Name = PyString_AsString(Arg); const char *Start; const char *Stop; if (GetCpp<pkgTagSection>(Self).Find(Name,Start,Stop) == false) |
