From fbb28430867a3682016b3146effb0c4f54475a64 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 11 Mar 2009 12:34:24 -0700 Subject: [PATCH] Ensure idx is properly initialized in all instances. --- module/nvpair/nvpair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/nvpair/nvpair.c b/module/nvpair/nvpair.c index 77891bf776..2cf1c51a8c 100644 --- a/module/nvpair/nvpair.c +++ b/module/nvpair/nvpair.c @@ -1563,7 +1563,7 @@ nvlist_lookup_nvpair_ei_sep(nvlist_t *nvl, const char *name, const char sep, char *sepp; char *idxp, *idxep; nvlist_t **nva; - long idx; + long idx = 0; int n; if (ip)