info_size is initialized to a random value. Quiet the warning by
initializing to zero.

* kern/slab.c (info_size): Initialize to zero.

---
 kern/slab.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kern/slab.c b/kern/slab.c
index bb35a34..07e1192 100644
--- a/kern/slab.c
+++ b/kern/slab.c
@@ -1468,7 +1468,7 @@ kern_return_t host_slab_info(host_t host, 
cache_info_array_t *infop,
     struct kmem_cache *cache;
     cache_info_t *info;
     unsigned int i, nr_caches;
-    vm_size_t info_size = info_size;
+    vm_size_t info_size = 0;
     kern_return_t kr;
 
     if (host == HOST_NULL)
-- 
1.8.1.4


Reply via email to