]> git.pld-linux.org Git - packages/lighttpd.git/commitdiff
- copied from trac
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 17 Jun 2006 20:30:43 +0000 (20:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    lighttpd-ticket-475.patch -> 1.1

lighttpd-ticket-475.patch [new file with mode: 0644]

diff --git a/lighttpd-ticket-475.patch b/lighttpd-ticket-475.patch
new file mode 100644 (file)
index 0000000..4057c18
--- /dev/null
@@ -0,0 +1,29 @@
+http://trac.lighttpd.net/trac/ticket/475
+
+Index: branches/lighttpd-merge-1.4.x/src/configparser.y
+===================================================================
+--- branches/lighttpd-merge-1.4.x/src/configparser.y (revision 1061)
++++ branches/lighttpd-merge-1.4.x/src/configparser.y (revision 1062)
+@@ -183,4 +183,5 @@
+       array_replace(vars, du);
+     }
++    B->free(B);
+   } else if (NULL != (du = configparser_get_variable(ctx, A))) {
+     du = configparser_merge_data(du, B);
+@@ -192,13 +193,11 @@
+       array_insert_unique(ctx->current->value, du);
+     }
++    B->free(B);
+   } else {
+-    fprintf(stderr, "Undefined config variable in conditional %d %s: %s\n", 
+-            ctx->current->context_ndx,
+-            ctx->current->key->ptr, A->ptr);
+-    ctx->ok = 0;
++    buffer_copy_string_buffer(B->key, A);
++    array_insert_unique(ctx->current->value, B);
+   }
+   buffer_free(A);
+   A = NULL;
+-  B->free(B);
+   B = NULL;
+ }
This page took 0.032484 seconds and 4 git commands to generate.