svn commit: samba r10695 - in branches/SAMBA_4_0/source/lib: .
abartlet at samba.org
abartlet at samba.org
Mon Oct 3 23:39:59 GMT 2005
Author: abartlet
Date: 2005-10-03 23:39:59 +0000 (Mon, 03 Oct 2005)
New Revision: 10695
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10695
Log:
strupper() of NULL should be NULL, not panic.
Andrew Bartlett
Modified:
branches/SAMBA_4_0/source/lib/util_str.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/util_str.c
===================================================================
--- branches/SAMBA_4_0/source/lib/util_str.c 2005-10-03 23:27:33 UTC (rev 10694)
+++ branches/SAMBA_4_0/source/lib/util_str.c 2005-10-03 23:39:59 UTC (rev 10695)
@@ -705,6 +705,10 @@
{
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 */
More information about the samba-cvs
mailing list