1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix compile warning

This commit is contained in:
Niels Dossche
2024-03-14 21:22:03 +01:00
parent eaf27400e6
commit 2b77e5bc6b

View File

@@ -364,11 +364,12 @@ static zval *php_dom_xpath_callback_fetch_args(xmlXPathParserContextPtr ctxt, ui
}
}
break;
default:
default: {
char *str = (char *)xmlXPathCastToString(obj);
ZVAL_STRING(param, str);
xmlFree(str);
break;
}
}
xmlXPathFreeObject(obj);
}