File diff r17388:4c1f53028687 → r17389:80d374d6031a
src/ini.cpp
Show inline comments
 
@@ -268,11 +268,11 @@ void IniFile::LoadFromDisk(const char *f
 
			}
 
			s++; // skip [
 
			group = new IniGroup(this, s, e - s);
 
			if (comment_size) {
 
			if (comment_size != 0) {
 
				group->comment = strndup(comment, comment_size);
 
				comment_size = 0;
 
			}
 
		} else if (group) {
 
		} else if (group != NULL) {
 
			char *t;
 
			/* find end of keyname */
 
			if (*s == '\"') {
 
@@ -285,7 +285,7 @@ void IniFile::LoadFromDisk(const char *f
 

	
 
			/* it's an item in an existing group */
 
			IniItem *item = new IniItem(group, s, t - s);
 
			if (comment_size) {
 
			if (comment_size != 0) {
 
				item->comment = strndup(comment, comment_size);
 
				comment_size = 0;
 
			}