diff --git a/patches/nginx-1.4.1-gcc-maybe-uninitialized-warning.patch b/patches/nginx-1.4.1-gcc-maybe-uninitialized-warning.patch new file mode 100644 index 0000000..58f5174 --- /dev/null +++ b/patches/nginx-1.4.1-gcc-maybe-uninitialized-warning.patch @@ -0,0 +1,11 @@ +--- nginx-1.4.1/src/http/ngx_http_request.c 2013-05-06 03:26:50.000000000 -0700 ++++ nginx-1.4.1-patched/src/http/ngx_http_request.c 2013-06-11 12:59:48.008321688 -0700 +@@ -1951,7 +1951,7 @@ + ngx_int_t rc; + ngx_http_connection_t *hc; + ngx_http_core_loc_conf_t *clcf; +- ngx_http_core_srv_conf_t *cscf; ++ ngx_http_core_srv_conf_t *cscf = NULL; + + hc = r->http_connection; + diff --git a/util/mirror-tarballs b/util/mirror-tarballs index 32fdf25..ff8126a 100755 --- a/util/mirror-tarballs +++ b/util/mirror-tarballs @@ -157,6 +157,10 @@ echo "$info_txt applying patches/nginx-$main_ver-invalid_referer_hash.patch for patch -p1 < $root/patches/nginx-$main_ver-invalid_referer_hash.patch || exit 1 echo +echo "$info_txt applying patches/nginx-$main_ver-gcc-maybe-uninitialized-warning.patch for nginx" +patch -p1 < $root/patches/nginx-$main_ver-gcc-maybe-uninitialized-warning.patch +echo + rm -f *.patch || exit 1 cd .. || exit 1