summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-11-05 03:39:18 +0100
committerGünther Deschner <gd@samba.org>2007-11-05 03:39:18 +0100
commita7be4d50d468da3ca7a8852780aeb901019d61c3 (patch)
treefc2eb71d33c4a619189641852cb52fb35da7cd0e /source3/lib
parente83e0f36846ba2b7831a63cb8717432617b337fd (diff)
parent2d73e86ccef0ba66309ce764ebe9df0deb076bb8 (diff)
downloadsamba-a7be4d50d468da3ca7a8852780aeb901019d61c3.tar.gz
samba-a7be4d50d468da3ca7a8852780aeb901019d61c3.tar.bz2
samba-a7be4d50d468da3ca7a8852780aeb901019d61c3.zip
Merge commit 'origin/v3-2-test' into branches/upstream
(This used to be commit d0bf0ad2ae9a2bff4cec8c7e801a22c624b874ae)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_str.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index 1f3aab3bce..6458ae3e05 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -411,13 +411,8 @@ char *strupper_static(const char *s)
{
static char *str = NULL;
- if (str) {
- SAFE_FREE(str);
- }
+ SAFE_FREE(str);
str = SMB_STRDUP(s);
- if (!str) {
- return CONST_DISCARD(char *,s);
- }
strupper_m(str);
return str;
}