diff options
author | 2017-08-11 16:55:46 +0000 | |
---|---|---|
committer | 2017-08-11 16:55:46 +0000 | |
commit | d84376f1a34132159521e04b01ba04b3ac16c74e (patch) | |
tree | 3458701f6da8bc36bc7980b4e2a868b93034cbee /usr.bin/ctfconv/ctfconv.c | |
parent | Make the "new sentence, new line" check stricter, allowing digits (diff) | |
download | wireguard-openbsd-d84376f1a34132159521e04b01ba04b3ac16c74e.tar.xz wireguard-openbsd-d84376f1a34132159521e04b01ba04b3ac16c74e.zip |
Fix nested declaration inside union or struct.
Diffstat (limited to 'usr.bin/ctfconv/ctfconv.c')
-rw-r--r-- | usr.bin/ctfconv/ctfconv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ctfconv/ctfconv.c b/usr.bin/ctfconv/ctfconv.c index 7fa2a7dd9fe..c72503c1830 100644 --- a/usr.bin/ctfconv/ctfconv.c +++ b/usr.bin/ctfconv/ctfconv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ctfconv.c,v 1.3 2017/08/11 16:28:29 mpi Exp $ */ +/* $OpenBSD: ctfconv.c,v 1.4 2017/08/11 16:55:46 mpi Exp $ */ /* * Copyright (c) 2016-2017 Martin Pieuchot @@ -383,7 +383,7 @@ dump_type(struct itype *it) TAILQ_FOREACH(im, &it->it_members, im_next) { printf("\t%s type=%u off=%zd\n", (im_name(im) == NULL) ? "unknown" : im_name(im), - im->im_refp->it_idx, im->im_off); + im->im_refp ? im->im_refp->it_idx : 0, im->im_off); } printf("\n"); break; |