1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00

Fix a c++ warning

(This used to be commit 9f402c607f44663cab91cc7d2139f62b84c99cc0)
This commit is contained in:
Volker Lendecke 2008-01-10 11:35:40 +01:00 committed by Michael Adam
parent 59820dcb43
commit a275310bcb

View File

@ -968,7 +968,8 @@ void *_talloc_realloc(const void *context, void *ptr, size_t size, const char *n
if (tc->flags & TALLOC_FLAG_POOLMEM) {
new_ptr = talloc_alloc_pool(tc, size + TC_HDR_SIZE);
*talloc_pool_objectcount(tc->pool) -= 1;
*talloc_pool_objectcount((struct talloc_chunk *)
(tc->pool)) -= 1;
if (new_ptr == NULL) {
new_ptr = malloc(TC_HDR_SIZE+size);