summaryrefslogtreecommitdiff
path: root/source3/lib/util_str.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/util_str.c')
-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;
}