summaryrefslogtreecommitdiff
path: root/ddb
diff options
context:
space:
mode:
Diffstat (limited to 'ddb')
-rw-r--r--ddb/db_sym.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ddb/db_sym.c b/ddb/db_sym.c
index 6bf8ec2..5f8a0f4 100644
--- a/ddb/db_sym.c
+++ b/ddb/db_sym.c
@@ -450,7 +450,7 @@ db_task_printsym(off, strategy, task)
cursym = db_search_task_symbol(off, strategy, &d, task);
db_symbol_values(0, cursym, &name, &value);
- if (name == 0 || d >= db_maxoff || value == 0) {
+ if (name == 0 || d >= db_maxoff || value == 0 || *name == 0) {
db_printf("%#n", off);
return;
}