aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-01-04 16:15:14 +0000
committerTom Tromey <tromey@redhat.com>2012-01-04 16:15:14 +0000
commit0f5b75627be29839c53335197f8c2154bda3325a (patch)
tree7862855e3982f1ab2573964e61e551f2e95cb35a /gdb
parent78218f5600d1c8dbe66f5281d24157b266124243 (diff)
downloadgdb-0f5b75627be29839c53335197f8c2154bda3325a.zip
gdb-0f5b75627be29839c53335197f8c2154bda3325a.tar.gz
gdb-0f5b75627be29839c53335197f8c2154bda3325a.tar.bz2
* python/py-value.c (valpy_binop): Initialize 'res_val'.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/python/py-value.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 042ef77..9154dc0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2012-01-04 Tom Tromey <tromey@redhat.com>
+
+ * python/py-value.c (valpy_binop): Initialize 'res_val'.
+
2012-01-04 Joel Brobecker <brobecker@adacore.com>
* corefile.c (close_exec_file): Delete.
diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c
index 66e65c4..760360e 100644
--- a/gdb/python/py-value.c
+++ b/gdb/python/py-value.c
@@ -725,7 +725,7 @@ valpy_binop (enum valpy_opcode opcode, PyObject *self, PyObject *other)
{
struct value *arg1, *arg2;
struct cleanup *cleanup = make_cleanup_value_free_to_mark (value_mark ());
- struct value *res_val;
+ struct value *res_val = NULL;
/* If the gdb.Value object is the second operand, then it will be passed
to us as the OTHER argument, and SELF will be an entirely different