You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sh...@apache.org on 2008/02/25 15:29:05 UTC

svn commit: r630862 - /webservices/axis2/trunk/c/axiom/src/om/om_output.c

Author: shankar
Date: Mon Feb 25 06:29:03 2008
New Revision: 630862

URL: http://svn.apache.org/viewvc?rev=630862&view=rev
Log:
null check in axiom_output_write

Modified:
    webservices/axis2/trunk/c/axiom/src/om/om_output.c

Modified: webservices/axis2/trunk/c/axiom/src/om/om_output.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/om/om_output.c?rev=630862&r1=630861&r2=630862&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/om/om_output.c (original)
+++ webservices/axis2/trunk/c/axiom/src/om/om_output.c Mon Feb 25 06:29:03 2008
@@ -555,7 +555,7 @@
            namespace.  Although the XML spec allows it to be declared
            explicitly, this is superfluous and not accepted by all xml
            parsers. */
-        if (strcmp(args_list[0], "xml") != 0)
+        if ((!args_list[0]) || (strcmp(args_list[0], "xml") != 0))
         {
             status = axiom_xml_writer_write_namespace(om_output->xml_writer,
                                                       env,



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org