fix: counter breaks while loop
This commit is contained in:
parent
e29c3ce419
commit
3bc3c7b8db
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2024-05-02 22:51+0300\n"
|
"POT-Creation-Date: 2024-05-02 22:56+0300\n"
|
||||||
"PO-Revision-Date: 2024-05-01 13:34+0300\n"
|
"PO-Revision-Date: 2024-05-01 13:34+0300\n"
|
||||||
"Last-Translator: <ngn@ngn.tf>\n"
|
"Last-Translator: <ngn@ngn.tf>\n"
|
||||||
"Language-Team: Turkish <gnome-turk@gnome.org>\n"
|
"Language-Team: Turkish <gnome-turk@gnome.org>\n"
|
||||||
|
@ -42,7 +42,7 @@ bool gen_cmd() {
|
|||||||
info(_("Copying all the targets"));
|
info(_("Copying all the targets"));
|
||||||
bar_init();
|
bar_init();
|
||||||
|
|
||||||
while (cur && counter++) {
|
while (cur && ++counter > 0) {
|
||||||
if(!target_copy(cur, true)){
|
if(!target_copy(cur, true)){
|
||||||
error(_("Failed to copy the target:"));
|
error(_("Failed to copy the target:"));
|
||||||
details(errch);
|
details(errch);
|
||||||
|
Loading…
Reference in New Issue
Block a user