mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-21 18:30:20 +00:00
correctly find the first item in the index
This commit is contained in:
parent
b02c57eea7
commit
523f28afcf
@ -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])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user