From 09619a30cbe10aef7576bdd78ffa1097ebafbc1d Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 15 Mar 2006 16:14:40 +0000 Subject: Fixed Bug #36614 (Segfault when using Soap) --- ext/soap/php_schema.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/soap/php_schema.c') 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); -- cgit v1.2.1