diff options
Diffstat (limited to 'res/res_rtp_asterisk.c')
-rw-r--r-- | res/res_rtp_asterisk.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index a6a4f3caf..ed01a834f 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -2370,9 +2370,8 @@ static char *rtp_do_debug_ip(struct ast_cli_args *a) struct hostent *hp; struct ast_hostent ahp; int port = 0; - char *p, *arg; + char *p, *arg = ast_strdupa(a->argv[3]); - arg = a->argv[3]; p = strstr(arg, ":"); if (p) { *p = '\0'; @@ -2400,9 +2399,8 @@ static char *rtcp_do_debug_ip(struct ast_cli_args *a) struct hostent *hp; struct ast_hostent ahp; int port = 0; - char *p, *arg; + char *p, *arg = ast_strdupa(a->argv[3]); - arg = a->argv[3]; p = strstr(arg, ":"); if (p) { *p = '\0'; |