strncpy (buffer, str, sizeof (buffer));
for (ptr = buffer; *ptr != 0; ptr++)
if (*ptr == '/')
- *ptr = '-';
+ *ptr = '_';
- for (ptr = buffer; *ptr == '-'; ptr++)
+ for (ptr = buffer; *ptr == '_'; ptr++)
/* do nothing */;
if (*ptr == 0)
dir->mtime = 0;
dir->size = 0;
+ status = 0;
for (i = 0; i < ci->children_num; i++)
{
oconfig_item_t *option = ci->children + i;
- status = 0;
if (strcasecmp ("Instance", option->key) == 0)
status = fc_config_add_dir_instance (dir, option);