From 1f946ab70567f1a2a965ea1ede7ec5236efe9b62 Mon Sep 17 00:00:00 2001 From: wangyu- Date: Sun, 5 Aug 2018 23:55:15 -0500 Subject: [PATCH] fixed default value --- misc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc.cpp b/misc.cpp index bd8ed04..ef57344 100644 --- a/misc.cpp +++ b/misc.cpp @@ -54,7 +54,7 @@ int tun_mtu=1500; int mssfix=1; -char rs_par_str[rs_str_len]; +char rs_par_str[rs_str_len]="20:10"; int from_normal_to_fec(conn_info_t & conn_info,char *data,int len,int & out_n,char **&out_arr,int *&out_len,my_time_t *&out_delay) @@ -662,7 +662,7 @@ void process_arg(int argc, char *argv[]) {NULL, 0, 0, 0} }; int option_index = 0; - assert(g_fec_par.rs_from_str((char *)"20:10")==0); + assert(g_fec_par.rs_from_str(rs_par_str)==0); for (i = 0; i < argc; i++) {