提交 4da1c193 编写于 作者: J jp9000

fix minor bug in config file parser

上级 158f83dc
......@@ -293,7 +293,7 @@ int config_save(config_t config)
for (j = 0; j < section->items.num; j++) {
struct config_item *item = darray_item(
sizeof(struct config_item),
&section->items, i);
&section->items, j);
dstr_cat(&str, item->name);
dstr_cat(&str, "=");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册