diff options
author | 2008-09-22 19:44:00 +0000 | |
---|---|---|
committer | 2008-09-22 19:44:00 +0000 | |
commit | fefe25984904cd4cc436756c6d8a8b45c1181444 (patch) | |
tree | d9d9e8dd997939b0e070b11955e767dd9acf8db1 /sys/dev/softraid.c | |
parent | Do not use an uninitialized local for comparison in azalia_rirb_intr(). (diff) | |
download | wireguard-openbsd-fefe25984904cd4cc436756c6d8a8b45c1181444.tar.xz wireguard-openbsd-fefe25984904cd4cc436756c6d8a8b45c1181444.zip |
Make sure some possibly uninitialized local variables are assigned correct
values in all cases.
ok marco@
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r-- | sys/dev/softraid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index d7bdbf2c650..eb4b42c3a20 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.119 2008/07/21 14:49:40 marco Exp $ */ +/* $OpenBSD: softraid.c,v 1.120 2008/09/22 19:44:00 miod Exp $ */ /* * Copyright (c) 2007 Marco Peereboom <marco@peereboom.us> * Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org> @@ -923,13 +923,13 @@ sr_boot_assembly(struct sr_softc *sc) continue; no_dev = 0; + m1 = (struct sr_metadata *)&mle->sml_metadata; bzero(dt, BIOC_CRMAXLEN); SLIST_FOREACH(mle2, &mlh, sml_link) { /* chunk used already? */ if (mle2->sml_used) continue; - m1 = (struct sr_metadata *)&mle->sml_metadata; m2 = (struct sr_metadata *)&mle2->sml_metadata; /* are we the same volume? */ |