mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
lib/tdr: get rid of build warning when using TDR_ALLOC macro.
Guenther
This commit is contained in:
parent
926457ec95
commit
ab8a16c77f
@ -55,7 +55,7 @@ struct tdr_print {
|
||||
} while (0)
|
||||
|
||||
#define TDR_ALLOC(ctx, s, n) do { \
|
||||
(s) = talloc_array_size(ctx, sizeof(*(s)), n); \
|
||||
(s) = talloc_array_ptrtype(ctx, (s), n); \
|
||||
if ((n) && !(s)) return NT_STATUS_NO_MEMORY; \
|
||||
} while (0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user