From 354addd7de2563f46e06a2f4bb2377eee5808b7d Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Fri, 2 Jul 2004 15:47:56 +0000 Subject: [PATCH] Add a default initializer for data_sds. The warning from GCC is not correct, the value is correctly initialized. The value of 0 should minimize the impact for future changes, where this might not hold true. --- sys/dev/raid/vinum/vinumconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/raid/vinum/vinumconfig.c b/sys/dev/raid/vinum/vinumconfig.c index 173a1ea35b..7aba00d41f 100644 --- a/sys/dev/raid/vinum/vinumconfig.c +++ b/sys/dev/raid/vinum/vinumconfig.c @@ -47,7 +47,7 @@ * * $Id: vinumconfig.c,v 1.30 2000/05/01 09:45:50 grog Exp grog $ * $FreeBSD: src/sys/dev/vinum/vinumconfig.c,v 1.32.2.6 2002/02/03 00:43:35 grog Exp $ - * $DragonFly: src/sys/dev/raid/vinum/vinumconfig.c,v 1.5 2003/11/09 02:22:35 dillon Exp $ + * $DragonFly: src/sys/dev/raid/vinum/vinumconfig.c,v 1.6 2004/07/02 15:47:56 joerg Exp $ */ #define STATIC static @@ -1846,7 +1846,7 @@ update_plex_config(int plexno, int diskconfig) int required_sds; /* number of subdisks we need */ struct sd *sd; struct volume *vol; - int data_sds; /* number of sds carrying data */ + int data_sds = 0; /* number of sds carrying data */ if (plex->state < plex_init) /* not a real plex, */ return; -- 2.41.0