axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shan...@apache.org
Subject svn commit: r630862 - /webservices/axis2/trunk/c/axiom/src/om/om_output.c
Date Mon, 25 Feb 2008 14:29:05 GMT
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


Mime
View raw message