summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/format.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/format.c b/src/format.c
index 150fa42..8732cd8 100644
--- a/src/format.c
+++ b/src/format.c
@@ -3152,6 +3152,9 @@ format_link(struct plugin_state *state, Slapi_PBlock *pb, Slapi_Entry *e,
}
max_length = length;
}
+ if (length == 0) {
+ continue;
+ }
/* Build the output value. */
p = buffer;
for (i = 0; i < n_lists; i += 2) {