From 85f76af7c321294091dd704a096329be2f96ae74 Mon Sep 17 00:00:00 2001 From: Marin Ramesa Date: Thu, 21 Nov 2013 13:11:05 +0100 Subject: ddb/db_sym.c: move assignment outside if * ddb/db_sym.c: Move assignment outside of if. (db_lookup): New variable. --- ddb/db_sym.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ddb/db_sym.c b/ddb/db_sym.c index 0819e08..359ec7c 100644 --- a/ddb/db_sym.c +++ b/ddb/db_sym.c @@ -276,7 +276,9 @@ db_name_is_ambiguous(sym_name) for (i = 0; i < db_nsymtab; i++) { db_sym_t sp; - if (sp = X_db_lookup(&db_symtabs[i], sym_name)) { + boolean_t db_lookup; + db_lookup = (int)(sp = X_db_lookup(&db_symtabs[i], sym_name)); + if (db_lookup) { if (found_once) { db_free_symbol(sp); -- cgit v1.2.3