mirror of
https://github.com/samba-team/samba.git
synced 2025-01-01 21:18:10 +03:00
r18952: fix compiler warning (merge from samba4)
metze
This commit is contained in:
parent
a1966a9c07
commit
4cd59d47c8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user