fix: counter breaks while loop

This commit is contained in:
ngn
2024-05-02 22:56:32 +03:00
parent e29c3ce419
commit 3bc3c7b8db
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ bool gen_cmd() {
info(_("Copying all the targets"));
bar_init();
while (cur && counter++) {
while (cur && ++counter > 0) {
if(!target_copy(cur, true)){
error(_("Failed to copy the target:"));
details(errch);