summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/talloc/talloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/talloc/talloc.c b/source3/lib/talloc/talloc.c
index d790c6c26b..58028a85b8 100644
--- a/source3/lib/talloc/talloc.c
+++ b/source3/lib/talloc/talloc.c
@@ -743,7 +743,7 @@ void *_talloc_steal(const void *new_ctx, const void *ptr)
*/
void *_talloc_move(const void *new_ctx, const void *_pptr)
{
- const void **pptr = (const void **)_pptr;
+ const void **pptr = discard_const_p(const void *,_pptr);
void *ret = _talloc_steal(new_ctx, *pptr);
(*pptr) = NULL;
return ret;