mirror of
https://github.com/samba-team/samba.git
synced 2025-11-01 16:23:49 +03:00
r18946: fix compiler warning
metze
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
ed195999c0
commit
4505958224
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user