[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/5] kern/slab.c: initialize info_size
From: |
Marin Ramesa |
Subject: |
[PATCH 2/5] kern/slab.c: initialize info_size |
Date: |
Tue, 19 Nov 2013 07:34:20 +0100 |
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