Projects
openEuler:24.03:SP1:Everything
swtpm
_service:tar_scm:0001-swtpm_setup-Initialized-a...
Sign Up
Log In
Username
Password
Sorry, you are not authorized to perform this action.
×
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:0001-swtpm_setup-Initialized-argv-in-get_swtpm_capabiliti.patch of Package swtpm
From 72d9c031a01e567d4bb172ce4f33e97f5659b4f8 Mon Sep 17 00:00:00 2001 From: Michal Privoznik <mprivozn@redhat.com> Date: Mon, 19 Dec 2022 09:27:57 +0100 Subject: [PATCH] swtpm_setup: Initialized @argv in get_swtpm_capabilities() The compiler (though wrongly) identifies that the @argv variable inside of get_swtpm_capabilities() function cam be used uninitialized. While this is a spurious warning, it's common practice to initialize g_autofree variables to NULL. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> --- src/swtpm_setup/swtpm_setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/swtpm_setup/swtpm_setup.c b/src/swtpm_setup/swtpm_setup.c index 1b528c8..3570235 100644 --- a/src/swtpm_setup/swtpm_setup.c +++ b/src/swtpm_setup/swtpm_setup.c @@ -937,7 +937,7 @@ static int get_swtpm_capabilities(gchar **swtpm_prg_l, gboolean is_tpm2, gchar *my_argv[] = { "--print-capabilities", is_tpm2 ? "--tpm2" : NULL, NULL }; g_autofree gchar *logop = NULL; g_autoptr(GError) error = NULL; - g_autofree gchar **argv; + g_autofree gchar **argv = NULL; int exit_status = 0; gboolean success; int ret = 1; -- 2.41.0.windows.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2