]> granicus.if.org Git - apache/commitdiff
Fix a reference to "ctx" in mod_include's CREATE_ERROR_BUCKET macro
authorCliff Woolley <jwoolley@apache.org>
Wed, 25 Apr 2001 17:07:40 +0000 (17:07 +0000)
committerCliff Woolley <jwoolley@apache.org>
Wed, 25 Apr 2001 17:07:40 +0000 (17:07 +0000)
to "cntx", which is the actual name of the argument to that macro.  It
accidentally worked before because all of the callers of the macro happen
to be passing in a variable named "ctx".  If one of them were to ever try
to pass in a context named something else, bad things would happen.

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

modules/filters/mod_include.h

index 0cb0427c8c5afc9753655c0c451a18c3f28ea1c0..6a92e0a57b3b9f2dfb49028cc07011387cf08b30 100644 (file)
@@ -175,7 +175,7 @@ typedef struct include_filter_ctx {
 {                                                                 \
     apr_size_t e_wrt;                                             \
     t_buck = apr_bucket_heap_create(cntx->error_str,              \
-                                   ctx->error_length, 1, &e_wrt); \
+                                  cntx->error_length, 1, &e_wrt); \
     APR_BUCKET_INSERT_BEFORE(h_ptr, t_buck);                      \
                                                                   \
     if (ins_head == NULL) {                                       \