summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@dahyabhai.net>2013-08-27 14:04:36 -0400
committerNalin Dahyabhai <nalin@dahyabhai.net>2013-08-27 14:04:36 -0400
commit26320c9fb054d9fc0a08a1e4271a19b394c17f0c (patch)
treedc9a008163501733a6dbf74d2128b6c5e1650e92 /src
parent9f2c663ef6a9ca915134b479d986c8554301e236 (diff)
downloadslapi-nis-26320c9fb054d9fc0a08a1e4271a19b394c17f0c.tar.gz
slapi-nis-26320c9fb054d9fc0a08a1e4271a19b394c17f0c.tar.xz
slapi-nis-26320c9fb054d9fc0a08a1e4271a19b394c17f0c.zip
Make sure that length is always initialized
Diffstat (limited to 'src')
-rw-r--r--src/format.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/format.c b/src/format.c
index 8f42223..150fa42 100644
--- a/src/format.c
+++ b/src/format.c
@@ -4387,6 +4387,7 @@ format_format(struct plugin_state *state,
}
format_free_choicesp(choices);
ret = NULL;
+ *data_length = 0;
}
free(buf);
} while (i == -ENOBUFS);