diff --git a/src/switch_apr.c b/src/switch_apr.c index fff38b14bb..ccde8ef40c 100644 --- a/src/switch_apr.c +++ b/src/switch_apr.c @@ -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); }