diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-07-13 17:47:45 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-07-13 17:47:45 +0200 |
| commit | 85165f89d3df8ad1c66bd9c842795885c407069e (patch) | |
| tree | f5f678e21c7354d631c9eb066d2e6d8da11cd25b /python/tag.cc | |
| parent | e8d06358310f09ea2c28e7640af8dce615040df7 (diff) | |
| download | python-apt-85165f89d3df8ad1c66bd9c842795885c407069e.tar.gz | |
python: No zero-size arrays for char *kwlist[].
Diffstat (limited to 'python/tag.cc')
| -rw-r--r-- | python/tag.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/tag.cc b/python/tag.cc index 573e8ce2..b393effe 100644 --- a/python/tag.cc +++ b/python/tag.cc @@ -260,7 +260,7 @@ static PyObject *TagFileJump(PyObject *Self,PyObject *Args) // --------------------------------------------------------------------- static PyObject *TagSecNew(PyTypeObject *type,PyObject *Args,PyObject *kwds) { char *Data; - static char *kwlist[] = {"text", 0}; + char *kwlist[] = {"text", 0}; if (PyArg_ParseTupleAndKeywords(Args,kwds,"s",kwlist,&Data) == 0) return 0; @@ -301,7 +301,7 @@ PyObject *ParseSection(PyObject *self,PyObject *Args) static PyObject *TagFileNew(PyTypeObject *type,PyObject *Args,PyObject *kwds) { PyObject *File; - static char *kwlist[] = {"file", 0}; + char *kwlist[] = {"file", 0}; if (PyArg_ParseTupleAndKeywords(Args,kwds,"O",kwlist,&File) == 0) return 0; int fileno = PyObject_AsFileDescriptor(File); |
