From: Robert Spalek Date: Fri, 28 Apr 2006 07:16:34 +0000 (+0200) Subject: conf2: fixed 2 bugs in parsing nested configuration files X-Git-Tag: holmes-import~645^2~11^2~12 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=6c7657dc827ace0c05ff3a242a94573a2596fff2;p=libucw.git conf2: fixed 2 bugs in parsing nested configuration files --- 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; }