From 11fd679eb2edabd139c9016e2b7d2085ca3aac5d Mon Sep 17 00:00:00 2001 From: Ondrej Kos Date: Thu, 2 May 2013 16:59:55 +0200 Subject: IDMAP: Fix variable initialization Before the recent changes, the variable was set to 0 too because it used to be part of a structure allocated with talloc_zero. --- src/lib/idmap/sss_idmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/idmap/sss_idmap.c b/src/lib/idmap/sss_idmap.c index 24506c68..3a39aaef 100644 --- a/src/lib/idmap/sss_idmap.c +++ b/src/lib/idmap/sss_idmap.c @@ -239,7 +239,7 @@ enum idmap_error_code sss_idmap_calculate_range(struct sss_idmap_ctx *ctx, { id_t max_slices; id_t orig_slice; - id_t new_slice; + id_t new_slice = 0; id_t min; id_t max; id_t idmap_lower; -- cgit