diff options
author | Tom Tromey <tromey@redhat.com> | 2009-09-29 15:17:26 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2009-09-29 15:17:26 +0000 |
commit | b195fe17c9cf95e93640b1de3bed9d21a0912168 (patch) | |
tree | 8dae28a0cbf644090fef556177fd694dc8d3d6b4 /gdb/python/py-value.c | |
parent | 72e080cea5d0cf7a5e7e6ae545b47cad18d433ca (diff) | |
download | gdb-b195fe17c9cf95e93640b1de3bed9d21a0912168.tar.gz |
* python/py-value.c (valpy_string): NULL-terminate 'keywords'.
Diffstat (limited to 'gdb/python/py-value.c')
-rw-r--r-- | gdb/python/py-value.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c index 58bcee3217f..014659327fe 100644 --- a/gdb/python/py-value.c +++ b/gdb/python/py-value.c @@ -238,7 +238,7 @@ valpy_string (PyObject *self, PyObject *args, PyObject *kw) const char *errors = NULL; const char *user_encoding = NULL; const char *la_encoding = NULL; - static char *keywords[] = { "encoding", "errors", "length" }; + static char *keywords[] = { "encoding", "errors", "length", NULL }; if (!PyArg_ParseTupleAndKeywords (args, kw, "|ssi", keywords, &user_encoding, &errors, &length)) |