mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
r10695: strupper() of NULL should be NULL, not panic.
Andrew Bartlett
This commit is contained in:
parent
8af8eaeeef
commit
b1bcc0dc0b
@ -705,6 +705,10 @@ char *strupper_talloc(TALLOC_CTX *ctx, const char *src)
|
||||
{
|
||||
size_t size=0;
|
||||
char *dest;
|
||||
|
||||
if (!src) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* this takes advantage of the fact that upper/lower can't
|
||||
change the length of a character by more than 1 byte */
|
||||
|
Loading…
Reference in New Issue
Block a user