]> granicus.if.org Git - apache/commitdiff
Switch to the corresponding apr_table_* macro rather than doing this
authorJustin Erenkrantz <jerenkrantz@apache.org>
Sun, 30 Sep 2001 01:37:20 +0000 (01:37 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Sun, 30 Sep 2001 01:37:20 +0000 (01:37 +0000)
ourselves.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91207 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_protocol.c

index 3d615ff645d1f3c14c1dc1ab87486982eb60fad8..205a07fffe42905d4021e5d687a6803e30abbbb6 100644 (file)
@@ -1091,7 +1091,7 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_http_header_filter(
                       r->content_encoding);
     }
 
-    if (r->content_languages && r->content_languages->nelts) {
+    if (!apr_is_empty_table(r->content_languages)) {
         char **languages = (char **)(r->content_languages->elts);
         for (i = 0; i < r->content_languages->nelts; ++i) {
             apr_table_mergen(r->headers_out, "Content-Language", languages[i]);