summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-05-07 13:32:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:52:08 -0500
commit7a919bede78fb689edd19f8e4209079610540ecd (patch)
tree878aebdce7814e9516d7df6ea71978ab9d4f1150 /source4
parentb157580538a26f0b71fb9d06f167e385064432d5 (diff)
downloadsamba-7a919bede78fb689edd19f8e4209079610540ecd.tar.gz
samba-7a919bede78fb689edd19f8e4209079610540ecd.tar.bz2
samba-7a919bede78fb689edd19f8e4209079610540ecd.zip
r22743: set the talloc name to the string...
metze (This used to be commit d907fb26a7b0a6543a4bf0b848327a0b7d0da9fa)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/charset/util_unistr.c4
1 files changed, 4 insertions, 0 deletions
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;
}