提交 46eb3d34 编写于 作者: E Emmanuel Leblond

Fix issue #73

上级 ed1fd910
......@@ -714,12 +714,12 @@ dictionary * iniparser_load(const char * ininame)
break ;
case LINE_SECTION:
errs = dictionary_set(dict, section, NULL);
errs += dictionary_set(dict, section, NULL) ? 1: 0;
break ;
case LINE_VALUE:
sprintf(tmp, "%s:%s", section, key);
errs = dictionary_set(dict, tmp, val) ;
errs += dictionary_set(dict, tmp, val) ? 1: 0;
break ;
case LINE_ERROR:
......
#
# This dict contains an error but ends up with a correct entry
#
[section]
error is here
a = b
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册