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

commit e89d07b88758f09ac1f8404f2b2f231ec525b68e
Author: Guillem Jover <[email protected]>
AuthorDate: Thu Feb 23 22:28:14 2023 +0100

    s-s-d: Initialize variables in run_stop_schedule()
    
    These are properly initialized, but the compiler gets confused as they
    are only initialized on some of the branches, but they are guaranteed
    to always get initialized because we can only specify «forever» once
    and need at least one other item (either a timeout or a signal).
    
    Warned-by: clang-16 -Wconditional-uninitialized
---
 utils/start-stop-daemon.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/utils/start-stop-daemon.c b/utils/start-stop-daemon.c
index f70cc379b..2fd41ebcb 100644
--- a/utils/start-stop-daemon.c
+++ b/utils/start-stop-daemon.c
@@ -2832,6 +2832,8 @@ run_stop_schedule(void)
 
        anykilled = false;
        retry_nr = 0;
+       n_killed = 0;
+       n_notkilled = 0;
 
        if (schedule == NULL) {
                do_stop(signal_nr, &n_killed, &n_notkilled);

-- 
Dpkg.Org's dpkg

Reply via email to