summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2016-01-21 08:03:09 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2016-01-21 08:03:09 +0000
commit55cb5be27292c957525f7cbf39b8972ee2e579f1 (patch)
tree75345900f576ac4a9906b5e12ed9f2ccb69fcecd /sys
parentfc74fd299f7263f301eb9bd1f23c442c33fb1cbd (diff)
avoid uninitialised variable use
ok kettenis@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/socppc/dev/socpcic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/socppc/dev/socpcic.c b/sys/arch/socppc/dev/socpcic.c
index b01ad2facc3..ad319baa25e 100644
--- a/sys/arch/socppc/dev/socpcic.c
+++ b/sys/arch/socppc/dev/socpcic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: socpcic.c,v 1.9 2010/12/04 17:06:32 miod Exp $ */
+/* $OpenBSD: socpcic.c,v 1.10 2016/01/21 08:03:08 jsg Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis
@@ -202,7 +202,7 @@ socpcic_attach(struct socpcic_softc *sc)
}
sc->sc_ranges = malloc(sc->sc_ranges_len, M_DEVBUF, M_NOWAIT);
- if (ranges == NULL)
+ if (sc->sc_ranges == NULL)
panic("out of memory");
len = OF_getprop(sc->sc_node, "ranges", sc->sc_ranges,