summaryrefslogtreecommitdiffstats
path: root/src/format.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/format.c')
-rw-r--r--src/format.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/format.c b/src/format.c
index b3588f7..95ee384 100644
--- a/src/format.c
+++ b/src/format.c
@@ -2227,6 +2227,8 @@ format_ifeq(struct plugin_state *state, Slapi_PBlock *pb, Slapi_Entry *e,
matched = FALSE;
value = slapi_value_new();
for (i = 0; values[i] != NULL; i++) {
+ ret = 0;
+ memset(&bv, 0, sizeof(bv));
bv.bv_val = values[i];
bv.bv_len = lengths[i];
slapi_value_set_berval(value, &bv);