commit:     72e489084b9ed30440b0bf937f370f65f616b6e2
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 26 18:26:56 2026 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Jan 26 18:26:56 2026 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=72e48908

main: pass cleared var to scandir, CID 557225

I don't think this is actually an issue, as scandir returns an allocated
structure, and the stack address we pass it won't be uninitialised.

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.c b/main.c
index 31339fe8..59be1e33 100644
--- a/main.c
+++ b/main.c
@@ -967,7 +967,7 @@ static void
 read_repos_conf(const char *repos_conf, char **primary)
 {
        char            top_conf[_Q_PATH_MAX];
-       struct dirent **confs;
+       struct dirent **confs = NULL;
        int             i;
        int             count;
 

Reply via email to