- const char *path = glob_res.gl_pathv[i];
- ret = config_include_one(config, &sib, path);
+ size_t i;
+ const char *path;
+ for (i = 0; (path = yaz_file_glob_get_file(glob_res, i)); i++)
+ ret = config_include_one(config, &sib, path);
+ yaz_file_globfree(&glob_res);