summaryrefslogtreecommitdiff
path: root/ext/soap/php_schema.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/soap/php_schema.c')
-rw-r--r--ext/soap/php_schema.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/soap/php_schema.c b/ext/soap/php_schema.c
index aa04525cc8..3753245bd5 100644
--- a/ext/soap/php_schema.c
+++ b/ext/soap/php_schema.c
@@ -2117,7 +2117,7 @@ static void schema_attribute_fixup(sdlCtx *ctx, sdlAttributePtr attr)
}
if (attr->name == NULL && attr->ref != NULL) {
char *name = strrchr(attr->ref, ':');
- if (*name) {
+ if (name) {
attr->name = estrdup(name+1);
} else{
attr->name = estrdup(attr->ref);