summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2010-07-02 01:35:14 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2010-07-02 01:35:14 +0000
commit4b4319aebff370a2f5a571161480688b172a6dd8 (patch)
tree978cd6cab5fa17f1a29eeaf6e35d288a69b7643f /sys/arch/i386
parent9d117e5e423280482f14797f20b9859c9ac00e9d (diff)
initialize values to something sensible.
ok deraadt pirofti
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/esm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/esm.c b/sys/arch/i386/i386/esm.c
index 5a334550f99..579416495a3 100644
--- a/sys/arch/i386/i386/esm.c
+++ b/sys/arch/i386/i386/esm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: esm.c,v 1.51 2010/06/30 15:22:05 blambert Exp $ */
+/* $OpenBSD: esm.c,v 1.52 2010/07/02 01:35:13 tedu Exp $ */
/*
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -685,9 +685,9 @@ struct esm_sensor_map esm_sensors_powerunit[] = {
void
esm_devmap(struct esm_softc *sc, struct esm_devmap *devmap)
{
- struct esm_sensor_map *sensor_map;
+ struct esm_sensor_map *sensor_map = NULL;
const char *name = NULL, *fname = NULL;
- int mapsize;
+ int mapsize = 0;
switch (devmap->dev_major) {
case ESM2_DEV_ESM2: