{
DIR *dir = NULL;
struct dirent *file_info = NULL;
- int flag = 0;
char path[PATH_MAX] = {0, };
char rel_path_old_tpk_file[PATH_MAX] = {0, };
char *file_path = NULL;
}
}
- if (flag == 1) {
- snprintf(rel_path_old_tpk_file, PATH_MAX, "%s/", dir_name);
- strncpy(path, rel_path_old_tpk_file+strlen(tpk_path),
- strlen(rel_path_old_tpk_file));
- file_path = strndup(path, sizeof(path));
- list = g_list_prepend(list, file_path);
- }
-
if (closedir(dir)) {
if (strerror_r(errno, buf, sizeof(buf)) == 0)
printf("Could not close '%s': %s\n", dir_name, buf);