From 7a919bede78fb689edd19f8e4209079610540ecd Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 7 May 2007 13:32:34 +0000 Subject: r22743: set the talloc name to the string... metze (This used to be commit d907fb26a7b0a6543a4bf0b848327a0b7d0da9fa) --- source4/lib/charset/util_unistr.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/lib') diff --git a/source4/lib/charset/util_unistr.c b/source4/lib/charset/util_unistr.c index ca65d1fa00..78af83973d 100644 --- a/source4/lib/charset/util_unistr.c +++ b/source4/lib/charset/util_unistr.c @@ -508,6 +508,8 @@ _PUBLIC_ char *strlower_talloc(TALLOC_CTX *ctx, const char *src) /* trim it so talloc_append_string() works */ dest = talloc_realloc_size(ctx, dest, size+1); + talloc_set_name_const(dest, dest); + return dest; } @@ -550,6 +552,8 @@ _PUBLIC_ char *strupper_talloc(TALLOC_CTX *ctx, const char *src) /* trim it so talloc_append_string() works */ dest = talloc_realloc_size(ctx, dest, size+1); + talloc_set_name_const(dest, dest); + return dest; } -- cgit