commit | a82d202af20f3bd10a426331c19ada6548b97f0f | [log] [tgz] |
---|---|---|
author | Thierry FOURNIER <tfournier@exceliance.fr> | Thu Dec 05 11:59:55 2013 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Dec 06 11:38:36 2013 +0100 |
tree | 1cc850d631ff5d693403cd5e1f8d9f6492405252 | |
parent | 275db69c078335a5f4545116006ecfe9219cfeff [diff] |
MINOR: map: Cleanup the initialisation of map descriptors. The association between struct map_descriptor and its struct map_reference must be done in the function map_create_descriptor().
diff --git a/src/map.c b/src/map.c index 81c61eb..2ed9f3a 100644 --- a/src/map.c +++ b/src/map.c
@@ -168,6 +168,7 @@ return NULL; desc->conv = conv; + desc->ref = ref; LIST_ADDQ(&ref->maps, &desc->list); @@ -366,7 +367,6 @@ return 0; } - desc->ref = ref; pattern_init_expr(&desc->pat); /* set the match method */