[php-src] master: Fix compile warning
| From: | Niels Dossche | Date: | Thu, 14 Mar 2024 20:35:54 +0000 |
| Subject: | [php-src] master: Fix compile warning | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-127739@lists.php.net to get a copy of this message | ||
Author: Niels Dossche (nielsdos)
Date: 2024-03-14T21:22:03+01:00
Commit: https://github.com/php/php-src/commit/2b77e5bc6b9bf0437bc624ee7735aaa5d649b499
Raw diff: https://github.com/php/php-src/commit/2b77e5bc6b9bf0437bc624ee7735aaa5d649b499.diff
Fix compile warning
Changed paths:
M ext/dom/xpath_callbacks.c
Diff:
diff --git a/ext/dom/xpath_callbacks.c b/ext/dom/xpath_callbacks.c
index 2c213050d02f..a4dbc4e3f8c8 100644
--- a/ext/dom/xpath_callbacks.c
+++ b/ext/dom/xpath_callbacks.c
@@ -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);
}