From f8db8e0ae8fa16894a5eb6367ca325e530ff506b Mon Sep 17 00:00:00 2001 From: CVS Import User Date: Sun, 4 Apr 2004 11:27:30 +0000 Subject: r4: merge in the SAMBA_3_0 branch from cvs to checkout try this: svn co svn+ssh://svn.samba.org/home/svn/samba/branches/SAMBA_3_0 samba-3_0-work metze --- source/lib/talloc.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'source/lib/talloc.c') diff --git a/source/lib/talloc.c b/source/lib/talloc.c index 485dc28f31d..093a221fd3d 100644 --- a/source/lib/talloc.c +++ b/source/lib/talloc.c @@ -276,6 +276,24 @@ char *talloc_strdup(TALLOC_CTX *t, const char *p) return NULL; } +/** strdup_upper with a talloc */ +char *talloc_strdup_upper(TALLOC_CTX *t, const char *p) +{ + char *r; + if (p) { + char *q = strdup_upper(p); + if (q) { + r = talloc_strdup(t, q); + SAFE_FREE(q); + return r; + } else { + return NULL; + } + } else { + return NULL; + } +} + /** strdup_w with a talloc */ smb_ucs2_t *talloc_strdup_w(TALLOC_CTX *t, const smb_ucs2_t *p) { -- cgit v1.2.1