From 0f5b75627be29839c53335197f8c2154bda3325a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 4 Jan 2012 16:15:14 +0000 Subject: * python/py-value.c (valpy_binop): Initialize 'res_val'. --- gdb/python/py-value.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/python') 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 -- cgit v1.1