From a251d0e3ac09b5f0b5507c165697d9a1041717a5 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 2 Mar 2018 13:42:31 +0100 Subject: [PATCH] fix dangling else swallowing the return statement with clang --- src/php_http_filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/php_http_filter.c b/src/php_http_filter.c index 608221b..95ff560 100644 --- a/src/php_http_filter.c +++ b/src/php_http_filter.c @@ -452,9 +452,9 @@ static php_stream_filter *http_filter_create(const char *name, zval *params, int php_http_encoding_stream_free(&b); } } +#if PHP_HTTP_HAVE_LIBBROTLI } else -#if PHP_HTTP_HAVE_LIBBROTLI if (!strcasecmp(name, "http.brotli_encode")) { PHP_HTTP_FILTER_BUFFER(stream) *b = NULL; @@ -473,8 +473,8 @@ static php_stream_filter *http_filter_create(const char *name, zval *params, int php_http_encoding_stream_free(&b); } } - } #endif + } return f; } -- 2.30.2