summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-19 07:34:20 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-11-19 20:43:44 +0100
commit5a7551cbbdf2d5f2df2fb60bdb85a0af9eaddcca (patch)
tree40b12b22c2f84ac371d68c07ae0b0d754dfedcdf
parentda72db8811807d5d63ac97a1e3a7177205f241ee (diff)
kern/slab.c: initialize info_size
info_size is initialized to a random value. Quiet the warning by initializing to zero. * kern/slab.c (info_size): Initialize to zero.
-rw-r--r--kern/slab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/slab.c b/kern/slab.c
index 2ef82cd..d1e3632 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)