Commit 065a9ed1 authored by Max Kellermann's avatar Max Kellermann

archive/iso9660: add local variable "filename"

parent e44c0254
......@@ -97,12 +97,13 @@ Iso9660ArchiveFile::Visit(const char *psz_path, ArchiveVisitor &visitor)
_CDIO_LIST_FOREACH (entnode, entlist) {
auto *statbuf = (iso9660_stat_t *)
_cdio_list_node_data(entnode);
const char *filename = statbuf->filename;
strcpy(pathname, psz_path);
strcat(pathname, statbuf->filename);
strcat(pathname, filename);
if (iso9660_stat_s::_STAT_DIR == statbuf->type ) {
if (strcmp(statbuf->filename, ".") && strcmp(statbuf->filename, "..")) {
if (strcmp(filename, ".") && strcmp(filename, "..")) {
strcat(pathname, "/");
Visit(pathname, visitor);
}
......
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