]> granicus.if.org Git - apache/commitdiff
Fixed missing null-termination of ap_make_content_type() patterns list
authorBrian Pane <brianp@apache.org>
Sun, 12 May 2002 16:55:41 +0000 (16:55 +0000)
committerBrian Pane <brianp@apache.org>
Sun, 12 May 2002 16:55:41 +0000 (16:55 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95047 13f79535-47bb-0310-9956-ffa450edef68

server/protocol.c

index ae8f0c3b06a31306aa8f9bb5c8e25c1794b52982..499224508f009d1e0445dfee7ecda9f1eda1fe3a 100644 (file)
@@ -129,6 +129,7 @@ AP_DECLARE(void) ap_setup_make_content_type(apr_pool_t *pool)
     for (i = 0; needcset[i]; i++) {
         needcset_patterns[i] = apr_strmatch_precompile(pool, needcset[i], 0);
     }
+    needcset_patterns[i] = NULL;
     charset_pattern = apr_strmatch_precompile(pool, "charset=", 0);
 }