diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2018-08-28 09:33:19 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2018-08-28 09:33:19 +0000 |
commit | 70967f363d39c8207a060a7899c7050cbd1b26e6 (patch) | |
tree | 0c052b93396cb54c75c11d8d67829a1389689762 /sys/dev/fdt | |
parent | 7697aa8bb94f12f79efd960d0b3caabdc4dbf3ec (diff) |
avoid uninitialised variable use in an error path
ok kettenis@
Diffstat (limited to 'sys/dev/fdt')
-rw-r--r-- | sys/dev/fdt/rkpcie.c | 4 |
1 files 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 <kettenis@openbsd.org> * @@ -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; |