mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
r22743: set the talloc name to the string...
metze (This used to be commit d907fb26a7b0a6543a4bf0b848327a0b7d0da9fa)
This commit is contained in:
parent
b157580538
commit
7a919bede7
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user