diff options
| author | zhengchao <[email protected]> | 2018-12-17 17:14:37 +0600 |
|---|---|---|
| committer | zhengchao <[email protected]> | 2018-12-17 17:14:37 +0600 |
| commit | 08ae82932ae7447b89d47e1f75d86341c1638de6 (patch) | |
| tree | 86891e5bcb76001a900f0bef008614f14201dac2 | |
| parent | 2e5c2764ee030b6e867ed5b6cd14371ab07b81b8 (diff) | |
修复解析拆分stream addr string的bug。
| -rw-r--r-- | common/src/tfe_types.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/src/tfe_types.cpp b/common/src/tfe_types.cpp index b81a0fe..d4161bc 100644 --- a/common/src/tfe_types.cpp +++ b/common/src/tfe_types.cpp @@ -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) |
