summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommi Rantala <tt.rantala@gmail.com>2012-09-20 15:44:57 +0300
committerTommi Rantala <tt.rantala@gmail.com>2012-09-28 14:51:21 +0300
commit22aff2cc1fc1f0bdf8eb8dc2338c4b957ddacaf9 (patch)
tree2cafb8651e80f731575fdf12547eae0affec9c11
parent65bdcc6f9dbbef0763cb3692a5e1fb6387d482f8 (diff)
downloadlibunwind-22aff2cc1fc1f0bdf8eb8dc2338c4b957ddacaf9.tar.gz
Fix second operand read in dwarf_eval_expr()
Due to bad bracketing, the second operand was never read for dwarf expressions that take two operands. Caught with sparse.
-rw-r--r--src/dwarf/Gexpr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dwarf/Gexpr.c b/src/dwarf/Gexpr.c
index ef8b32a0..b4f2bc96 100644
--- a/src/dwarf/Gexpr.c
+++ b/src/dwarf/Gexpr.c
@@ -254,7 +254,7 @@ do { \
OPND1_TYPE (operands_signature),
&operand1, arg)) < 0)
return ret;
- if (NUM_OPERANDS (operands_signature > 1))
+ if (NUM_OPERANDS (operands_signature) > 1)
if ((ret = read_operand (as, a, addr,
OPND2_TYPE (operands_signature),
&operand2, arg)) < 0)