Skip to content

Commit 302ada3

Browse files
committed
Fix [-Wduplicated-cond] in SOAP extension
1 parent 3bed2ef commit 302ada3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ext/soap/php_schema.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1612,8 +1612,6 @@ static int schema_element(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr element, sdlTyp
16121612
attr = get_attribute(attrs, "default");
16131613
if (attr) {
16141614
if (ref != NULL) {
1615-
soap_error0(E_ERROR, "Parsing Schema: element has both 'ref' and 'fixed' attributes");
1616-
} else if (ref != NULL) {
16171615
soap_error0(E_ERROR, "Parsing Schema: element has both 'default' and 'fixed' attributes");
16181616
}
16191617
cur_type->def = estrdup((char*)attr->children->content);

0 commit comments

Comments
 (0)