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
1 changed files with 2 additions and 2 deletions

View File

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