mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user