Skip to content
Snippets Groups Projects
Commit 8bb9de45 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Stop counting dupes for no reason.

While dupes were counted, nothing was done with the count, so just
delete it.

Fixes Clang warning.
parent b349eda5
Branches
Tags
No related merge requests found
Pipeline #8581 passed
......@@ -1074,7 +1074,6 @@ void xfer_cfg()
if (getdircase(path))
SAFECOPY(tmpdir.path, path + strlen(cfg.lib[libnum]->parent_path) + 1);
int dupes = 0;
int attempts = 0; // attempts to generate a unique internal code
if (stricmp(tmpdir.code_suffix, duplicate_code) == 0)
attempts = ++duplicate_codes;
......@@ -1130,7 +1129,6 @@ void xfer_cfg()
} else {
SAFEPRINTF(str, "Duplicate dir: %s", cfg.dir[j]->code_suffix);
uifc.msg(str);
dupes++;
}
if (k == 2) {
SAFECOPY(cfg.dir[j]->code_suffix, tmpdir.code_suffix);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment