Skip to content

Commit 2b77e5b

Browse files
committed
Fix compile warning
1 parent eaf2740 commit 2b77e5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/dom/xpath_callbacks.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -364,11 +364,12 @@ static zval *php_dom_xpath_callback_fetch_args(xmlXPathParserContextPtr ctxt, ui
364364
}
365365
}
366366
break;
367-
default:
367+
default: {
368368
char *str = (char *)xmlXPathCastToString(obj);
369369
ZVAL_STRING(param, str);
370370
xmlFree(str);
371371
break;
372+
}
372373
}
373374
xmlXPathFreeObject(obj);
374375
}

0 commit comments

Comments
 (0)