mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
Remove unnecessary code
SAFE_FREE checks for NULL anyway, and SMB_STRDUP panics on failure
(This used to be commit 4cdebda39b
)
This commit is contained in:
parent
082da3d287
commit
2d73e86cce
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user