From afe578cd8894b9a6cd6c6b65e552448536f02dce Mon Sep 17 00:00:00 2001 From: shankar Date: Thu, 1 Apr 2010 14:07:15 +0000 Subject: Refactor, adding comments, improving performance git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@929982 13f79535-47bb-0310-9956-ffa450edef68 --- axiom/src/om/om_attribute.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'axiom/src/om/om_attribute.c') diff --git a/axiom/src/om/om_attribute.c b/axiom/src/om/om_attribute.c index 9d2a81e..01c59ca 100644 --- a/axiom/src/om/om_attribute.c +++ b/axiom/src/om/om_attribute.c @@ -201,11 +201,9 @@ axiom_attribute_get_localname( axiom_attribute_t * attribute, const axutil_env_t * env) { - if(attribute->localname) - { - return (axis2_char_t *)axutil_string_get_buffer(attribute->localname, env); - } - return NULL; + AXIS2_ASSERT(attribute); + AXIS2_ASSERT(attribute->localname); + return (axis2_char_t *)axutil_string_get_buffer(attribute->localname, env); } AXIS2_EXTERN axis2_char_t *AXIS2_CALL -- cgit v1.1-32-gdbae