summaryrefslogtreecommitdiff
path: root/lib/tdb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tdb')
-rw-r--r--lib/tdb/common/summary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tdb/common/summary.c b/lib/tdb/common/summary.c
index 29959f9e5f..da1ec2b739 100644
--- a/lib/tdb/common/summary.c
+++ b/lib/tdb/common/summary.c
@@ -155,7 +155,7 @@ _PUBLIC_ char *tdb_summary(struct tdb_context *tdb)
/* 20 is max length of a %zu. */
len = strlen(SUMMARY_FORMAT) + 35*20 + 1;
- ret = malloc(len);
+ ret = (char *)malloc(len);
if (!ret)
goto unlock;