]> mj.ucw.cz Git - libucw.git/commitdiff
conf2: fixed 2 bugs in parsing nested configuration files
authorRobert Spalek <robert@ucw.cz>
Fri, 28 Apr 2006 07:16:34 +0000 (09:16 +0200)
committerRobert Spalek <robert@ucw.cz>
Fri, 28 Apr 2006 07:16:34 +0000 (09:16 +0200)
lib/conf2.c

index 551182036e1395437c464693a4f64c7e3d468630..04b4a6395311b79b035a2b74b84511a901ffc29c 100644 (file)
@@ -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;
     }