inc to add \n

This commit is contained in:
Laurent Vivier 2007-08-26 20:18:47 +00:00
parent f5d73a387d
commit b02c57eea7

View File

@ -49,7 +49,11 @@ void config_set_indexed_property(char *configuration,
if (last_index != -1)
last_index = config_find_entry(configuration + last_index, index_name, NULL);
if (last_index == -1)
{
last_index = strlen(configuration);
if (last_index > 0)
last_index++; /* to insert a '\n' */
}
index = last_index;
}
}