Fix gcc uninitialized variable warnings
[zfs.git] / module / zfs / spa_misc.c
index cd8a6c8..32ef51d 100644 (file)
@@ -399,7 +399,7 @@ spa_lookup(const char *name)
        static spa_t search;    /* spa_t is large; don't allocate on stack */
        spa_t *spa;
        avl_index_t where;
-       char c;
+       char c = 0;
        char *cp;
 
        ASSERT(MUTEX_HELD(&spa_namespace_lock));