]> granicus.if.org Git - apache/commitdiff
unused variable error could mistakenly note that brotli isn't available.
authorJim Jagielski <jim@apache.org>
Mon, 16 Jan 2017 18:24:00 +0000 (18:24 +0000)
committerJim Jagielski <jim@apache.org>
Mon, 16 Jan 2017 18:24:00 +0000 (18:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1779077 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/config.m4

index fd230c01c295fb978a8275f282ba10dfdb7c2c43..2d83608c00413f50f1876d3c775197852f763e54 100644 (file)
@@ -155,7 +155,8 @@ APACHE_MODULE(brotli, Brotli compression support, , , most, [
     AC_MSG_CHECKING([for Brotli library >= 1.0.0 via prefix])
     AC_TRY_COMPILE(
       [#include <brotli/encode.h>],[
-const uint8_t *o = BrotliEncoderTakeOutput((BrotliEncoderState*)0, (size_t*)0);],
+const uint8_t *o = BrotliEncoderTakeOutput((BrotliEncoderState*)0, (size_t*)0);
+if (o) return *o;],
       [AC_MSG_RESULT(yes)
        ap_brotli_found=yes
        ap_brotli_cflags="-I${ap_brotli_base}/include"