summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/ccache/ccselect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/krb5/ccache/ccselect.c')
-rw-r--r--src/lib/krb5/ccache/ccselect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/krb5/ccache/ccselect.c b/src/lib/krb5/ccache/ccselect.c
index 235c0c6a4..2f3071a27 100644
--- a/src/lib/krb5/ccache/ccselect.c
+++ b/src/lib/krb5/ccache/ccselect.c
@@ -77,7 +77,7 @@ load_modules(krb5_context context)
/* Allocate a large enough list of handles. */
for (count = 0; modules[count] != NULL; count++);
- list = k5alloc((count + 1) * sizeof(*list), &ret);
+ list = k5calloc(count + 1, sizeof(*list), &ret);
if (list == NULL)
goto cleanup;