bjh 99/11/28 05:32:16
Modified: src/ap ap_hooks.c Log: Fix hook sorting. When walking a linked list it's a good idea to start at the head rather than the first element of the array. This makes mod_userdir actually work. Revision Changes Path 1.8 +1 -1 apache-2.0/src/ap/ap_hooks.c Index: ap_hooks.c =================================================================== RCS file: /home/cvs/apache-2.0/src/ap/ap_hooks.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- ap_hooks.c 1999/10/04 16:36:44 1.7 +++ ap_hooks.c 1999/11/28 13:32:15 1.8 @@ -120,7 +120,7 @@ ap_create_context(&p, g_pHookPool); pSort=prepare(p,(TSortData *)pHooks->elts,pHooks->nelts); - tsort(pSort,pHooks->nelts); + pSort=tsort(pSort,pHooks->nelts); pNew=ap_make_array(g_pHookPool,pHooks->nelts,sizeof(TSortData)); if(g_bDebugHooks) printf("Sorting %s:",szName);