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 di...@apache.org on 2006/11/12 11:17:36 UTC

svn commit: r473912 - in /webservices/axis2/trunk/c/woden/src/schema: imported_schema.c inlined_schema.c

Author: dinesh
Date: Sun Nov 12 02:17:35 2006
New Revision: 473912

URL: http://svn.apache.org/viewvc?view=rev&rev=473912
Log:
fixes for null handling in woden code

Modified:
    webservices/axis2/trunk/c/woden/src/schema/imported_schema.c
    webservices/axis2/trunk/c/woden/src/schema/inlined_schema.c

Modified: webservices/axis2/trunk/c/woden/src/schema/imported_schema.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/schema/imported_schema.c?view=diff&rev=473912&r1=473911&r2=473912
==============================================================================
--- webservices/axis2/trunk/c/woden/src/schema/imported_schema.c (original)
+++ webservices/axis2/trunk/c/woden/src/schema/imported_schema.c Sun Nov 12 02:17:35 2006
@@ -88,12 +88,14 @@
 
     if (!schema)
     {
-        schema_impl = (woden_imported_schema_impl_t *) create(env);
+	  schema = (void *) create (env);
+	  schema_impl = (woden_imported_schema_impl_t *)schema;
     }
     else
         schema_impl = (woden_imported_schema_impl_t *) schema;
 
-    woden_imported_schema_free_ops(schema, env);
+    if (schema)
+	  woden_imported_schema_free_ops(schema, env);
 
     schema_impl->imported_schema.schema.ops =
         AXIS2_MALLOC(env->allocator, sizeof(woden_schema_ops_t));

Modified: webservices/axis2/trunk/c/woden/src/schema/inlined_schema.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/schema/inlined_schema.c?view=diff&rev=473912&r1=473911&r2=473912
==============================================================================
--- webservices/axis2/trunk/c/woden/src/schema/inlined_schema.c (original)
+++ webservices/axis2/trunk/c/woden/src/schema/inlined_schema.c Sun Nov 12 02:17:35 2006
@@ -89,12 +89,14 @@
 
     if (!schema)
     {
-        schema_impl = (woden_inlined_schema_impl_t *) create(env);
+	  schema = (void *) create (env);
+	  schema_impl = (woden_inlined_schema_impl_t *) schema;
     }
     else
         schema_impl = (woden_inlined_schema_impl_t *) schema;
 
-    woden_inlined_schema_free_ops(schema, env);
+    if (schema)
+	  woden_inlined_schema_free_ops(schema, env);
 
     schema_impl->inlined_schema.schema.ops =
         AXIS2_MALLOC(env->allocator,



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