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=d3195b7f618ce0aa8c6b09178c6175460742c22d

The following commit(s) were added to refs/heads/main by this push:
     new d3195b7f6 dpkg-trigger: Initialize opt_act to 1
d3195b7f6 is described below

commit d3195b7f618ce0aa8c6b09178c6175460742c22d (HEAD -> main)
Author: Guillem Jover <[email protected]>
AuthorDate: Tue Dec 3 06:03:37 2024 +0100

    dpkg-trigger: Initialize opt_act to 1
    
    After inverting the sense of the boolean variable, we should have
    initialized it to 1, from the previous implicit 0, otherwise we default
    to dry-run mode.
    
    Fixes: commit faebdfb31c2f354562c348760aa38539d5c948a4
    Changelog: silent
---
 src/trigger/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/trigger/main.c b/src/trigger/main.c
index def143a46..cf2e2c46a 100644
--- a/src/trigger/main.c
+++ b/src/trigger/main.c
@@ -94,7 +94,7 @@ usage(const char *const *argv)
        return 0;
 }
 
-static int opt_act;
+static int opt_act = 1;
 static int opt_await = 1;
 static const char *opt_bypackage;
 

-- 
Dpkg.Org's dpkg

Reply via email to