commit:     3ad50e42b3a55bfa2713f0bbdc496b7c78fd8038
Author:     gto2023 <gto7052 <AT> mailbox <DOT> org>
AuthorDate: Thu Jul 13 11:55:09 2023 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sun Aug  6 00:39:52 2023 +0000
URL:        https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=3ad50e42

sandbox: prevent possible use of uninitialized members of sandbox_info struct

Signed-off-by: gto2023 <gto7052 <AT> mailbox.org>
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
(cherry picked from commit 5d13985d6ec4ceeced9b9b45f00bc19c69efbb8f)

 src/sandbox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sandbox.c b/src/sandbox.c
index f4ffd20..9c3e0da 100644
--- a/src/sandbox.c
+++ b/src/sandbox.c
@@ -211,7 +211,7 @@ int main(int argc, char **argv)
 {
        int sandbox_log_presence = 0;
 
-       struct sandbox_info_t sandbox_info;
+       struct sandbox_info_t sandbox_info = {};
 
        char **sandbox_environ;
        char **argv_bash = NULL;

Reply via email to