提交 d7358cd5 编写于 作者: Z zkf0 提交者: YiluMao

Add two if sentences about result_start.

上级 5a9359ce
......@@ -222,6 +222,10 @@ int activation_parse_data(char *response_data)
ACTIVATION_DEBUG("response data: %s\n", response_data);
result_start = strstr(response_data, ACTIVATION_RESPONSE_RESULT_START);
if(result_start == NULL){
ACTIVATION_ERR("parse reponse result failed\n");
return -1;
}
result_end = strstr(result_start, ACTIVATION_RESPONSE_RESULT_END);
if ((result_start != NULL)
&& (result_end != NULL)) {
......@@ -239,6 +243,10 @@ int activation_parse_data(char *response_data)
}
result_start = strstr(response_data, ACTIVATION_RESPONSE_MESSAGE_START);
if(result_start == NULL){
ACTIVATION_ERR("parse reponse result failed\n");
return -1;
}
result_end = strstr(result_start, ACTIVATION_RESPONSE_MESSAGE_END);
if ((result_start != NULL) && (result_end != NULL)) {
result_start += strlen(ACTIVATION_RESPONSE_MESSAGE_START);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册