summaryrefslogtreecommitdiff
path: root/ddb
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-11-24 22:59:09 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-11-24 22:59:09 +0100
commit9eedb4a3bef454d79f1309f963f0faeb7ca0efa0 (patch)
tree16f5dd9b37a66bc6a6cfa14185c15e2d2702fafa /ddb
parent5c4032339c996c9150c25e083adab547bc4d5fdc (diff)
Simplify test
* ddb/db_sym.c (db_name_is_ambiguous): Simplify test for value returned by X_db_lookup.
Diffstat (limited to 'ddb')
-rw-r--r--ddb/db_sym.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ddb/db_sym.c b/ddb/db_sym.c
index 359ec7c..0a5c9db 100644
--- a/ddb/db_sym.c
+++ b/ddb/db_sym.c
@@ -275,10 +275,8 @@ db_name_is_ambiguous(sym_name)
return FALSE;
for (i = 0; i < db_nsymtab; i++) {
- db_sym_t sp;
- boolean_t db_lookup;
- db_lookup = (int)(sp = X_db_lookup(&db_symtabs[i], sym_name));
- if (db_lookup) {
+ db_sym_t sp = X_db_lookup(&db_symtabs[i], sym_name);
+ if (sp) {
if (found_once)
{
db_free_symbol(sp);