]> granicus.if.org Git - apache/commitdiff
Fix uninitialized variable warning. (This was a bug.)
authorJustin Erenkrantz <jerenkrantz@apache.org>
Mon, 3 Sep 2001 22:09:15 +0000 (22:09 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Mon, 3 Sep 2001 22:09:15 +0000 (22:09 +0000)
Submitted by: Cliff's compiler (warning) and Brian Pane (fix)
Reviewed by: Justin Erenkrantz

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

modules/filters/mod_include.c

index 52fe162a1f005fe693ba34f4cba562800d8dff5a..db8e24c32e2dadd2a290348848c252071b0daa81 100644 (file)
@@ -242,11 +242,10 @@ static apr_bucket *find_start_sequence(apr_bucket *dptr, include_ctx_t *ctx,
         }
 
         if (ctx->output_now) {
-            apr_size_t start_index;
             apr_bucket *start_bucket;
             if (ctx->head_start_index > 0) {
                 start_bucket = ctx->head_start_bucket;
-                apr_bucket_split(start_bucket, start_index);
+                apr_bucket_split(start_bucket, ctx->head_start_index);
                 start_bucket = APR_BUCKET_NEXT(start_bucket);
                 ctx->head_start_index = 0;
                 ctx->head_start_bucket = start_bucket;