diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-09-01 05:26:11 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-09-01 05:26:11 +0000 |
commit | 49917aa9a3d7bc9525154ccaed369d2ce4311649 (patch) | |
tree | e85285f23116a71949f20af248f2a0fdc13873bf /sys/ddb | |
parent | d04f3fc18ea2405054f59f685d14d9a9466bb138 (diff) |
initialise the width var in db_struct_offset_cmd()
ok miod@ deraadt@
Diffstat (limited to 'sys/ddb')
-rw-r--r-- | sys/ddb/db_struct.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ddb/db_struct.c b/sys/ddb/db_struct.c index 98ecbfe9fe4..32ac575030d 100644 --- a/sys/ddb/db_struct.c +++ b/sys/ddb/db_struct.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_struct.c,v 1.3 2013/10/19 21:02:50 guenther Exp $ */ +/* $OpenBSD: db_struct.c,v 1.4 2015/09/01 05:26:10 jsg Exp $ */ /* * Copyright (c) 2009 Miodrag Vallat. @@ -203,6 +203,7 @@ db_struct_offset_cmd(db_expr_t addr, int have_addr, db_expr_t count, break; if (oidx == NOFFS) { + width = 0; db_format(tmpfmt, sizeof tmpfmt, (long)offset, DB_FORMAT_N, 0, width); db_printf("no known structure element at offset %-*s\n", |