From a945a7c7794374f26c41edfd9c8f1ba0d9355ebb Mon Sep 17 00:00:00 2001 From: jsg Date: Tue, 28 Aug 2018 09:33:18 +0000 Subject: [PATCH] avoid uninitialised variable use in an error path ok kettenis@ --- sys/dev/fdt/rkpcie.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/fdt/rkpcie.c b/sys/dev/fdt/rkpcie.c index df5fc1b39fe..ad140d8f11a 100644 --- a/sys/dev/fdt/rkpcie.c +++ b/sys/dev/fdt/rkpcie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rkpcie.c,v 1.5 2018/08/06 10:52:30 patrick Exp $ */ +/* $OpenBSD: rkpcie.c,v 1.6 2018/08/28 09:33:18 jsg Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -314,7 +314,7 @@ rkpcie_attach(struct device *parent, struct device *self, void *aux) void rkpcie_atr_init(struct rkpcie_softc *sc) { - uint32_t *ranges; + uint32_t *ranges = NULL; struct extent *ex; bus_addr_t addr; bus_size_t size, offset; -- 2.20.1