From: Pierangelo Masarati Date: Mon, 24 Aug 2009 01:22:55 +0000 (+0000) Subject: fix uninitialized var (ITS#6266; actually, the problem was a bit more severe...) X-Git-Tag: ACLCHECK_0~244 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e45c20cf92a3ae3578f8ce949e9a0217c801f4f0;p=openldap fix uninitialized var (ITS#6266; actually, the problem was a bit more severe...) --- diff --git a/servers/slapd/overlays/dynlist.c b/servers/slapd/overlays/dynlist.c index 8e90185296..630400384e 100644 --- a/servers/slapd/overlays/dynlist.c +++ b/servers/slapd/overlays/dynlist.c @@ -957,7 +957,7 @@ dynlist_db_config( ObjectClass *oc; AttributeDescription *ad = NULL, *member_ad = NULL; - dynlist_map_t *dlm = NULL; + dynlist_map_t *dlm = NULL, *dlml = NULL; const char *text; if ( argc < 3 ) { @@ -997,7 +997,6 @@ dynlist_db_config( AttributeDescription *member_ad = NULL; AttributeDescription *mapped_ad = NULL; dynlist_map_t *dlmp; - dynlist_map_t *dlml; /* @@ -1032,7 +1031,6 @@ dynlist_db_config( dlmp = (dynlist_map_t *)ch_calloc( 1, sizeof( dynlist_map_t ) ); if ( dlm == NULL ) { dlm = dlmp; - dlml = NULL; } dlmp->dlm_member_ad = member_ad; dlmp->dlm_mapped_ad = mapped_ad; @@ -1406,7 +1404,7 @@ dl_cfgen( ConfigArgs *c ) struct berval nbase = BER_BVNULL; Filter *filter = NULL; struct berval uri = BER_BVNULL; - dynlist_map_t *dlm = NULL; + dynlist_map_t *dlm = NULL, *dlml = NULL; const char *text; oc = oc_find( c->argv[ 1 ] ); @@ -1534,7 +1532,6 @@ done_uri:; AttributeDescription *member_ad = NULL; AttributeDescription *mapped_ad = NULL; dynlist_map_t *dlmp; - dynlist_map_t *dlml; /* @@ -1572,7 +1569,6 @@ done_uri:; dlmp = (dynlist_map_t *)ch_calloc( 1, sizeof( dynlist_map_t ) ); if ( dlm == NULL ) { dlm = dlmp; - dlml = NULL; } dlmp->dlm_member_ad = member_ad; dlmp->dlm_mapped_ad = mapped_ad;