summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 920c8e9db8..c833707d62 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -1962,7 +1962,7 @@ free a data blob and clear its contents
void data_blob_clear_free(DATA_BLOB *d)
{
if (d->data) {
- memset((char *)&(d->data), 0, d->length);
+ memset(d->data, 0, d->length);
}
data_blob_free(d);
}