From 9946c59860e45c29c4b5fb28f3d237c010dbecc1 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Fri, 26 Jun 2020 12:34:54 +0000 Subject: avoid uninitialised pointer use found with scan-build, ok kettenis@ --- sys/arch/powerpc64/dev/phb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/powerpc64/dev') 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 * @@ -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); -- cgit v1.2.3