From: Martin Schwenke Date: Thu, 18 Jan 2018 05:08:15 +0000 (+1100) Subject: talloc: Fix documentation typo X-Git-Tag: tevent-0.9.36~298 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9daf40c55af61081abca663c7250f103d5b2a0df;p=thirdparty%2Fsamba.git talloc: Fix documentation typo Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs Autobuild-User(master): Martin Schwenke Autobuild-Date(master): Mon Jan 22 11:11:38 CET 2018 on sn-devel-144 --- diff --git a/lib/talloc/talloc.h b/lib/talloc/talloc.h index 618430a50ab..dda308d21e1 100644 --- a/lib/talloc/talloc.h +++ b/lib/talloc/talloc.h @@ -1226,7 +1226,7 @@ size_t talloc_array_length(const void *ctx); * * @code * ptr = talloc_array(ctx, type, count); - * if (ptr) memset(ptr, sizeof(type) * count); + * if (ptr) memset(ptr, 0, sizeof(type) * count); * @endcode */ void *talloc_zero_array(const void *ctx, #type, unsigned count);