summaryrefslogtreecommitdiff
path: root/gdb/python/py-value.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2009-09-29 15:17:26 +0000
committerTom Tromey <tromey@redhat.com>2009-09-29 15:17:26 +0000
commitb195fe17c9cf95e93640b1de3bed9d21a0912168 (patch)
tree8dae28a0cbf644090fef556177fd694dc8d3d6b4 /gdb/python/py-value.c
parent72e080cea5d0cf7a5e7e6ae545b47cad18d433ca (diff)
downloadgdb-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.c2
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))