summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2018-05-04 02:54:24 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2018-05-04 02:54:24 +0000
commit2d49bbb16b3a48bdd9e442875b2b917a97f0ee82 (patch)
tree3486695465af4a9fe3b088f8b7e6cb5c6ff2d6dc /sys/arch/hppa
parenta154259e1ebd6ed7ee3d364c984669594735c226 (diff)
Initialize st_count in db_save_stack_trace().
OK guenther@
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r--sys/arch/hppa/hppa/db_interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/hppa/hppa/db_interface.c b/sys/arch/hppa/hppa/db_interface.c
index 33c3bf093fc..8e0349dff0c 100644
--- a/sys/arch/hppa/hppa/db_interface.c
+++ b/sys/arch/hppa/hppa/db_interface.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_interface.c,v 1.43 2018/03/20 15:45:32 mpi Exp $ */
+/* $OpenBSD: db_interface.c,v 1.44 2018/05/04 02:54:23 visa Exp $ */
/*
* Copyright (c) 1999-2003 Michael Shalayeff
@@ -324,6 +324,7 @@ db_save_stack_trace(struct db_stack_trace *st)
pc = 0;
rp = fp[-5];
+ st->st_count = 0;
for (i = 0; i < DB_STACK_TRACE_MAX; i++) {
st->st_pc[st->st_count++] = rp;