From 190013787bbc424c240413d914e3a038f974ccef Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Sun, 27 Jun 2021 21:57:58 -0700 Subject: [PATCH] Fix warning --- ext/filter/logical_filters.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/filter/logical_filters.c b/ext/filter/logical_filters.c index 85dec38686bbe..3856fb6b9468f 100644 --- a/ext/filter/logical_filters.c +++ b/ext/filter/logical_filters.c @@ -628,8 +628,8 @@ void php_filter_validate_url(PHP_INPUT_FILTER_PARAM_DECL) /* {{{ */ RETURN_VALIDATION_FAILED } - if (url->user != NULL && !is_userinfo_valid(url->user) - || url->pass != NULL && !is_userinfo_valid(url->pass) + if ((url->user != NULL && !is_userinfo_valid(url->user)) + || (url->pass != NULL && !is_userinfo_valid(url->pass)) ) { php_url_free(url); RETURN_VALIDATION_FAILED