[Freeswitch-svn] [commit] r7701 - freeswitch/trunk/src
Freeswitch SVN
mikej at freeswitch.org
Tue Feb 19 16:17:00 EST 2008
Author: mikej
Date: Tue Feb 19 16:17:00 2008
New Revision: 7701
Modified:
freeswitch/trunk/src/switch_apr.c
Log:
tweak
Modified: freeswitch/trunk/src/switch_apr.c
==============================================================================
--- freeswitch/trunk/src/switch_apr.c (original)
+++ freeswitch/trunk/src/switch_apr.c Tue Feb 19 16:17:00 2008
@@ -124,6 +124,11 @@
SWITCH_DECLARE(char *) switch_copy_string(char *dst, const char *src, switch_size_t dst_size)
{
+ if (!dst) return NULL;
+ if (!src) {
+ dst = NULL;
+ return NULL;
+ }
return apr_cpystrn(dst, src, dst_size);
}
More information about the Freeswitch-svn
mailing list