修复解析拆分stream addr string的bug。
This commit is contained in:
@@ -10,7 +10,7 @@ int tfe_stream_addr_str_split(char* addr_str, const char** sip, const char** spo
|
||||
const char* seps=" ";
|
||||
char* saveptr=NULL, *subtoken=NULL, *str=NULL;
|
||||
int i=0;
|
||||
for (str = addr_str; ; str = NULL)
|
||||
for (str = addr_str, i=0; ; str = NULL, i++)
|
||||
{
|
||||
subtoken = strtok_r(str, seps, &saveptr);
|
||||
if (subtoken == NULL)
|
||||
|
||||
Reference in New Issue
Block a user