]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: talloc: Cleanup. Use consistent preprocessor logic macros.
authorJeremy Allison <jra@samba.org>
Tue, 20 Oct 2020 19:18:10 +0000 (12:18 -0700)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 9 Nov 2020 02:46:49 +0000 (02:46 +0000)
Match other use of ALWAYS_REALLOC.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14540

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/talloc/talloc.c

index e476f3e2d052ad4ff8f48d3f59861ed4e2ed85fd..54250c1b67d4abfc20a8c57786b71b69c1c427f1 100644 (file)
@@ -1898,7 +1898,7 @@ _PUBLIC_ void *_talloc_realloc(const void *context, void *ptr, size_t size, cons
         */
        _talloc_chunk_set_free(tc, NULL);
 
-#if ALWAYS_REALLOC
+#if (ALWAYS_REALLOC != 0)
        if (pool_hdr) {
                new_ptr = tc_alloc_pool(tc, size + TC_HDR_SIZE, 0);
                pool_hdr->object_count--;