Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-1572

Undefined variable prefix in generated code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.0
    • 1.7.0
    • wsdl2c tool
    • None

    Description

      The generated code failed with an undefined variable "prefix". A close look shows that the code is generated by CADBBeanTemplateSource.xsl at line 539-547

      if(prefix_found)

      { /* node value contain the prefix */ char *prefix_value = AXIS2_MALLOC(env->allocator, (cp_ro - node_value - 1) + 1); strncpy(prefix, node_value, (cp_ro - node_value - 1)); prefix[cp_ro - node_value - 1] = '\0'; qname_ns = axiom_element_find_namespace_uri((axiom_element_t*)axiom_node_get_data_element(parent, env), env, prefix_value, parent); AXIS2_FREE(env->allocator, prefix_value); }

      I replaced prefix with prefix_value, and the generated code seems good.

      Attachments

        Activity

          People

            nandika Korale Gamaralalage Nandika Chandrasiri Jayawardana
            hengli_wang Hengli Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: