summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common/ldb_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/ldb/common/ldb_alloc.c')
-rw-r--r--source4/lib/ldb/common/ldb_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/ldb_alloc.c b/source4/lib/ldb/common/ldb_alloc.c
index 667759e832..6abd6fa8c3 100644
--- a/source4/lib/ldb/common/ldb_alloc.c
+++ b/source4/lib/ldb/common/ldb_alloc.c
@@ -122,7 +122,7 @@ void *ldb_strdup(struct ldb_context *ldb, const char *str)
/*
a ldb wrapper for asprintf(), using ldb_malloc()
*/
-int ldb_asprintf(struct ldb_context *ldb, char **strp, const char *fmt, ...)
+int ldb_asprintf(struct ldb_context *ldb, char **strp, const char *fmt, ...) _PRINTF_ATTRIBUTE(3, 4)
{
int len, len2;
va_list ap;