diff options
author | Marin Ramesa <mpr@hi.t-com.hr> | 2013-11-21 13:11:05 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-11-21 18:19:13 +0100 |
commit | 85f76af7c321294091dd704a096329be2f96ae74 (patch) | |
tree | 1ab1dcd9ae0620fe2915945e36569ec477d2a106 /ddb | |
parent | 58b9f11ca2df6daa5f6116e98f95e3916471cf27 (diff) |
ddb/db_sym.c: move assignment outside if
* ddb/db_sym.c: Move assignment outside of if.
(db_lookup): New variable.
Diffstat (limited to 'ddb')
-rw-r--r-- | ddb/db_sym.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |