rem: ns = (struct Namespace*)SOAP_MALLOC(n); if (ns) { memcpy(ns, soap->namespaces, n); ns[0].id = "SOAP-ENV"; ns[1].id = "SOAP-ENC"; ns[2].id = "xsi"; if (ns[0].ns) { if (!strcmp(ns[0].ns, soap_env1))
add: ns2 = (struct Namespace*)SOAP_MALLOC(n); if (ns2) { memcpy(ns2, soap->namespaces, n); ns2[0].id = "SOAP-ENV"; ns2[1].id = "SOAP-ENC"; ns2[2].id = "xsi"; if (ns2[0].ns) { if (!strcmp(ns2[0].ns, soap_env1))
context: soap_set_local_namespaces(struct soap *soap){ if (soap->namespaces && !soap->local_namespaces)  { register struct Namespace *ns;    register size_t n = 1;    for (ns = soap->namespaces; ns->id; ns++)      n++;    if (n > 3)    { n *= sizeof(struct Namespace);      ns = (struct Namespace*)SOAP_MALLOC(n);      if (ns)      { memcpy(ns, soap->namespaces, n);        ns[0].id = "SOAP-ENV";        ns[1].id = "SOAP-ENC";        ns[2].id = "xsi";        if (ns[0].ns)        { if (!strcmp(ns[0].ns, soap_env1))            soap->version = 1;          else            soap->version = 2;        }        soap->local_namespaces = ns;      }    }  }}