changeset 898:1f00332cda59 draft

(svn r1384) Fix: Sometimes when lists were saved, a lot of blank lines had been added
author dominik <dominik@openttd.org>
date Wed, 05 Jan 2005 11:19:57 +0000
parents dadaf913d412
children f8b37d44e4c9
files settings.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/settings.c
+++ b/settings.c
@@ -962,7 +962,7 @@
 	if (!group)
 		return;
 	for (i = 0; i != len; i++) {
-		if (list[i] == '\0') continue;
+		if (list[i] == NULL || list[i][0] == '\0') continue;
 
 		if (first) { // add first item to the head of the group
 			item = ini_item_alloc(group, list[i], strlen(list[i]));