diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-06-26 12:34:54 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-06-26 12:34:54 +0000 |
commit | 9946c59860e45c29c4b5fb28f3d237c010dbecc1 (patch) | |
tree | af0385a34a0d2f173a210b92a7e2168ede931f8c /sys/arch/powerpc64/dev | |
parent | 22e098a415eb0534e3ae11dfcd637612703d3f0b (diff) |
avoid uninitialised pointer use
found with scan-build, ok kettenis@
Diffstat (limited to 'sys/arch/powerpc64/dev')
-rw-r--r-- | sys/arch/powerpc64/dev/phb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/powerpc64/dev/phb.c b/sys/arch/powerpc64/dev/phb.c index 4c8e35c8a66..1d664fe6d74 100644 --- a/sys/arch/powerpc64/dev/phb.c +++ b/sys/arch/powerpc64/dev/phb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: phb.c,v 1.8 2020/06/14 19:00:12 kettenis Exp $ */ +/* $OpenBSD: phb.c,v 1.9 2020/06/26 12:34:53 jsg Exp $ */ /* * Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org> * @@ -483,7 +483,7 @@ phb_intr_establish(void *v, pci_intr_handle_t ih, int level, int (*func)(void *), void *arg, char *name) { struct phb_softc *sc = v; - void *cookie; + void *cookie = NULL; KASSERT(ih.ih_type != PCI_NONE); |