summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);