diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-07-04 12:38:36 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-07-04 12:38:36 +0200 |
commit | 11f50cfe836ec104b4167e7c6c5d207a4d8fe081 (patch) | |
tree | ec16b9f423562a25b7ad702514aca1c70b09de50 /grammar | |
parent | 3613f7e1bf0e5eb06d2049eaebb0f39afb71d153 (diff) | |
download | rsyslog-11f50cfe836ec104b4167e7c6c5d207a4d8fe081.tar.gz rsyslog-11f50cfe836ec104b4167e7c6c5d207a4d8fe081.tar.xz rsyslog-11f50cfe836ec104b4167e7c6c5d207a4d8fe081.zip |
bugfix(new bug): cfsyslines were not properly reversed during parsing
Diffstat (limited to 'grammar')
-rw-r--r-- | grammar/utils.c | 10 |
1 files changed, 3 insertions, 7 deletions
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; |