summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2010-06-30 11:19:10 -0700
committerNoriko Hosoi <nhosoi@redhat.com>2010-07-07 17:17:13 -0700
commitce1ac026add75269d75adc215edac5e01a650e22 (patch)
treed0f719c58c136e7f7f651d2b17188b2ab64725ca
parentf43d023a12e16658f8bc62bc3d471805ec3155d3 (diff)
downloadds-ce1ac026add75269d75adc215edac5e01a650e22.tar.gz
ds-ce1ac026add75269d75adc215edac5e01a650e22.tar.xz
ds-ce1ac026add75269d75adc215edac5e01a650e22.zip
609255 - fix coverity Defect Type: Memory - illegal accesses issues
https://bugzilla.redhat.com/show_bug.cgi?id=609255 12237 UNINIT Triaged Unassigned Bug Minor Fix Required vlv_trim_candidates_byvalue() ds/ldap/servers/slapd/back-ldbm/vlv.c Commit: There is almost no chance to pass uninitialized typedown_value to ber_bvecfree unless vlv_request_control value is NULL. Anyway, we init typedown_value to NULL.
-rw-r--r--ldap/servers/slapd/back-ldbm/vlv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldap/servers/slapd/back-ldbm/vlv.c b/ldap/servers/slapd/back-ldbm/vlv.c
index 2f2cb48e..fbbd6044 100644
--- a/ldap/servers/slapd/back-ldbm/vlv.c
+++ b/ldap/servers/slapd/back-ldbm/vlv.c
@@ -1489,7 +1489,7 @@ vlv_trim_candidates_byvalue(backend *be, const IDList *candidates, const sort_sp
PRUint32 current= 0;
ID id = NOID;
int found= 0;
- struct berval **typedown_value;
+ struct berval **typedown_value = NULL;
/* For non-matchrule indexing */
value_compare_fn_type compare_fn= NULL;