correctly find the first item in the index

This commit is contained in:
Laurent Vivier 2007-08-31 20:41:36 +00:00
parent b02c57eea7
commit 523f28afcf

View File

@ -17,8 +17,11 @@ int config_find_indexed_property(char *configuration, char *index_name, char *in
if (index_name == NULL)
index = 0;
else
else {
index = config_find_entry(configuration, index_name, index_property);
index = config_get_next_property(configuration, index,
current_name, property);
}
while ((index != -1) && configuration[index])
{