From 6c7657dc827ace0c05ff3a242a94573a2596fff2 Mon Sep 17 00:00:00 2001 From: Robert Spalek Date: Fri, 28 Apr 2006 09:16:34 +0200 Subject: [PATCH] conf2: fixed 2 bugs in parsing nested configuration files --- lib/conf2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/conf2.c b/lib/conf2.c index 55118203..04b4a639 100644 --- a/lib/conf2.c +++ b/lib/conf2.c @@ -1320,11 +1320,11 @@ parse_fastbuf(byte *name_fb, struct fastbuf *fb, uns depth) goto error; } uns ll = line_num; - msg = parse_fastbuf(pars[0], new_fb, depth+1); + msg = parse_fastbuf(stk_strdup(pars[0]), new_fb, depth+1); + line_num = ll; bclose(new_fb); if (msg) goto error; - line_num = ll; parse_fb = fb; continue; } -- 2.39.2