1
0
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:
Volker Lendecke 2007-11-01 17:42:35 +01:00
parent 082da3d287
commit 2d73e86cce

View File

@ -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;
}