summaryrefslogtreecommitdiff
path: root/src/lib/idmap
diff options
context:
space:
mode:
authorOndrej Kos <okos@redhat.com>2013-05-02 16:59:55 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-05-03 12:21:50 +0200
commit11fd679eb2edabd139c9016e2b7d2085ca3aac5d (patch)
tree393531dafc344101b1893753873c1dee73fa8600 /src/lib/idmap
parentfcc79e09b7c1777bef90874956bd89ac9c3b5832 (diff)
downloadsssd-11fd679eb2edabd139c9016e2b7d2085ca3aac5d.tar.gz
sssd-11fd679eb2edabd139c9016e2b7d2085ca3aac5d.tar.bz2
sssd-11fd679eb2edabd139c9016e2b7d2085ca3aac5d.zip
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.
Diffstat (limited to 'src/lib/idmap')
-rw-r--r--src/lib/idmap/sss_idmap.c2
1 files changed, 1 insertions, 1 deletions
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;