Fixed variable name that had been accidentally changed for better

clarity
This commit is contained in:
Celine Mercier
2016-05-18 13:27:41 +02:00
parent 6a8df069ad
commit ffff91e76c

View File

@ -1845,7 +1845,7 @@ OBIDMS_avl_group_p obi_open_avl_group(OBIDMS_p dms, const char* avl_name)
{
OBIDMS_avl_group_p avl_group;
char* avl_dir_name;
int last_avl_idx;
int avl_count;
int i;
// Check if the group isn't already open
@ -1869,21 +1869,21 @@ OBIDMS_avl_group_p obi_open_avl_group(OBIDMS_p dms, const char* avl_name)
avl_dir_name = get_full_path_of_avl_dir(dms, avl_name);
if (avl_dir_name == NULL)
return NULL;
last_avl_idx = count_dir(avl_dir_name) / 2;
if (last_avl_idx < 0)
avl_count = count_dir(avl_dir_name) / 2;
if (avl_count < 0)
{
obidebug(1, "\nError counting the AVLs in an AVL directory: %s", avl_name);
return NULL;
}
// Open the AVLs
for (i=0; i<last_avl_idx; i++)
for (i=0; i<avl_count; i++)
{
(avl_group->sub_avls)[i] = obi_open_avl(dms, avl_name, i);
if ((avl_group->sub_avls)[i] == NULL)
return NULL;
}
avl_group->last_avl_idx = last_avl_idx-1; // TODO latest. discuss
avl_group->last_avl_idx = avl_count-1; // TODO latest. discuss
strcpy(avl_group->name, avl_name);
avl_group->dms = dms;