This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=1d4478841a804d13f1799a1974a9eeeef6e582cb

commit 1d4478841a804d13f1799a1974a9eeeef6e582cb
Author: Guillem Jover <[email protected]>
AuthorDate: Tue Feb 14 02:34:14 2023 +0100

    dpkg: Do not reset the line number for each --command-fd parsed command
    
    This means the lines printed lose their meaning, and are less than
    helpful.
    
    Warned-by: cppcheck
---
 src/main/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/main.c b/src/main/main.c
index 6f0633e6f..3a80787d4 100644
--- a/src/main/main.c
+++ b/src/main/main.c
@@ -640,10 +640,11 @@ commandfd(const char *const *argv)
   if (in == NULL)
     ohshite(_("couldn't open '%i' for stream"), (int)infd);
 
+  lno = 0;
+
   for (;;) {
     bool mode = false;
     int argc= 1;
-    lno= 0;
 
     push_error_context();
 

-- 
Dpkg.Org's dpkg

Reply via email to