diff options
Diffstat (limited to 'source3/lib/talloc.c')
-rw-r--r-- | source3/lib/talloc.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/source3/lib/talloc.c b/source3/lib/talloc.c index 4c263ec4d61..85dd7b5b12d 100644 --- a/source3/lib/talloc.c +++ b/source3/lib/talloc.c @@ -55,13 +55,7 @@ void *talloc(TALLOC_CTX *t, size_t size) void *p; struct talloc_chunk *tc; - if (size == 0) { - /* debugging value used to track down - memory problems. BAD_PTR is defined - in talloc.h */ - p = BAD_PTR; - return p; - } + if (size == 0) return NULL; p = malloc(size); if (!p) return p; |