Skip to content

Commit

Permalink
Merge pull request #55 from aliyun/add_new_features
Browse files Browse the repository at this point in the history
fix list_buckets
  • Loading branch information
baiyubin committed Apr 18, 2018
2 parents 7f6ad04 + 615382e commit a67cbae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oss_c_sdk/oss_xml.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,14 +337,14 @@ void oss_list_buckets_content_parse(aos_pool_t *p, mxml_node_t *xml_node, aos_li
}

node = mxmlFindElement(xml_node, xml_node, "ExtranetEndpoint", NULL, NULL, MXML_DESCEND);
if (NULL != node) {
if (NULL != node && NULL != node->child) {
xml_value = node->child->value.opaque;
value = apr_pstrdup(p, (char *)xml_value);
aos_str_set(&content->extranet_endpoint, value);
}

node = mxmlFindElement(xml_node, xml_node, "IntranetEndpoint", NULL, NULL, MXML_DESCEND);
if (NULL != node) {
if (NULL != node && NULL != node->child) {
xml_value = node->child->value.opaque;
value = apr_pstrdup(p, (char *)xml_value);
aos_str_set(&content->intranet_endpoint, value);
Expand Down

0 comments on commit a67cbae

Please sign in to comment.