1
0
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:
Andrew Bartlett 2005-10-03 23:39:59 +00:00 committed by Gerald (Jerry) Carter
parent 8af8eaeeef
commit b1bcc0dc0b

View File

@ -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 */