git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7704 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-02-19 21:24:13 +00:00
parent b69f5addb2
commit e1786743e6

View File

@ -126,8 +126,8 @@ SWITCH_DECLARE(char *) switch_copy_string(char *dst, const char *src, switch_siz
{ {
if (!dst) return NULL; if (!dst) return NULL;
if (!src) { if (!src) {
dst = NULL; *dst = '\0';
return NULL; return dst;
} }
return apr_cpystrn(dst, src, dst_size); return apr_cpystrn(dst, src, dst_size);
} }