fix location match type initializataion

Sun, 23 Nov 2025 13:27:13 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 23 Nov 2025 13:27:13 +0100
changeset 637
85721a583f39
parent 636
40f069ddda37
child 638
14ae3d8c01ae

fix location match type initializataion

src/server/daemon/location.c file | annotate | diff | comparison | revisions
--- a/src/server/daemon/location.c	Sun Nov 23 13:22:56 2025 +0100
+++ b/src/server/daemon/location.c	Sun Nov 23 13:27:13 2025 +0100
@@ -105,6 +105,7 @@
     }
     
     WSLocation *location = cxZalloc(a, sizeof(WSLocation));
+    location->match = match;
     location->match_string = cx_strdup_a((a), match_str);
     
     if(match == WS_LOCATION_MATCH_CS_REGEX || match == WS_LOCATION_MATCH_CI_REGEX) {

mercurial