From 11f50cfe836ec104b4167e7c6c5d207a4d8fe081 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 4 Jul 2011 12:38:36 +0200 Subject: bugfix(new bug): cfsyslines were not properly reversed during parsing --- grammar/utils.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'grammar/utils.c') diff --git a/grammar/utils.c b/grammar/utils.c index 4e93c26c..f25977d5 100644 --- a/grammar/utils.c +++ b/grammar/utils.c @@ -187,12 +187,10 @@ static inline struct cnfcfsyslinelst* cnfcfsyslinelstReverse(struct cnfcfsyslinelst *lst) { struct cnfcfsyslinelst *curr, *prev; - +printf("syslinerevers on %p\n", lst); if(lst == NULL) return NULL; - prev = lst; - lst = lst->next; - prev->next = NULL; + prev = NULL; while(lst != NULL) { curr = lst; lst = lst->next; @@ -207,9 +205,7 @@ cnfactlstReverse(struct cnfactlst *actlst) { struct cnfactlst *curr, *prev; - prev = actlst; - actlst = actlst->next; - prev->next = NULL; + prev = NULL; while(actlst != NULL) { curr = actlst; actlst = actlst->next; -- cgit v1.2.3