Commit b48330a5 by Celine Mercier

Fixed a little bug when cleaning unfinished views

parent 74d880b8
......@@ -2595,18 +2595,19 @@ int obi_clean_unfinished_views(OBIDMS_p dms)
d++;
}
}
}
for (i=0; i<d; i++)
for (i=0; i<d; i++)
{
if (remove(to_delete[i]) < 0)
{
if (remove(to_delete[i]) < 0)
{
obi_set_errno(OBIVIEW_ERROR);
obidebug(1, "\nError deleting a view file when deleting unfinished views: file %s", to_delete[d]);
ret_value = -1;
}
free(to_delete[d]);
obi_set_errno(OBIVIEW_ERROR);
obidebug(1, "\nError deleting a view file when deleting unfinished views: file %s", to_delete[i]);
ret_value = -1;
}
free(to_delete[i]);
}
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment