From 3bc3c7b8db20153df78f4821904cbc0da2cf1163 Mon Sep 17 00:00:00 2001 From: ngn Date: Thu, 2 May 2024 22:56:32 +0300 Subject: [PATCH] fix: counter breaks while loop --- locale/tr/LC_MESSAGES/mc.po | 2 +- src/gen.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/locale/tr/LC_MESSAGES/mc.po b/locale/tr/LC_MESSAGES/mc.po index 23a78d8..3d63f32 100644 --- a/locale/tr/LC_MESSAGES/mc.po +++ b/locale/tr/LC_MESSAGES/mc.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\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" "Last-Translator: \n" "Language-Team: Turkish \n" diff --git a/src/gen.c b/src/gen.c index 58f20cd..004de6a 100644 --- a/src/gen.c +++ b/src/gen.c @@ -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);