]> granicus.if.org Git - zfs/commitdiff
Ensure idx is properly initialized in all instances.
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 11 Mar 2009 19:34:24 +0000 (12:34 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 11 Mar 2009 19:34:24 +0000 (12:34 -0700)
module/nvpair/nvpair.c

index 77891bf7764451de33b5bd18dfeb4453c40cd47b..2cf1c51a8c0185cd5b78b584cd1b3fd5b59c54e9 100644 (file)
@@ -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)