mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Fix format string errors and some missing error case initialization.
* common/logging.c (do_logv): Remove extra parentheses in comparison. * dirmngr/dns-stuff.c (resolve_addr_libdns): Init RES so that dns_res_close is given a defined value in the error case. * dirmngr/http.c (cookie_read, cookie_write) [HTTP_USE_NTBTLS]: Fix format string char. * dirmngr/ks-engine-hkp.c (ks_hkp_help): Remove duplicate "const". * dirmngr/ks-engine-http.c (ks_http_help): Ditto. * dirmngr/ks-engine-kdns.c (ks_kdns_help): Ditto. * dirmngr/ks-engine-ldap.c (ks_ldap_help): Ditto. * scd/app-p15.c (send_keypairinfo, do_getattr): Fix format string char. * tools/gpgconf-comp.c (gpg_agent_runtime_change): Init PID for the error case. (scdaemon_runtime_change): Ditto. (dirmngr_runtime_change): Ditto. * tools/gpgconf.c (query_swdb): Init VALUE_SIZE_UL. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
3ca3da8fc4
commit
af5979a42b
10 changed files with 14 additions and 14 deletions
|
@ -1138,7 +1138,7 @@ gpg_agent_runtime_change (int killflag)
|
|||
gpg_error_t err = 0;
|
||||
const char *pgmname;
|
||||
const char *argv[5];
|
||||
pid_t pid;
|
||||
pid_t pid = (pid_t)(-1);
|
||||
char *abs_homedir = NULL;
|
||||
int i = 0;
|
||||
|
||||
|
@ -1174,7 +1174,7 @@ scdaemon_runtime_change (int killflag)
|
|||
gpg_error_t err = 0;
|
||||
const char *pgmname;
|
||||
const char *argv[9];
|
||||
pid_t pid;
|
||||
pid_t pid = (pid_t)(-1);
|
||||
char *abs_homedir = NULL;
|
||||
int i = 0;
|
||||
|
||||
|
@ -1221,7 +1221,7 @@ dirmngr_runtime_change (int killflag)
|
|||
gpg_error_t err = 0;
|
||||
const char *pgmname;
|
||||
const char *argv[6];
|
||||
pid_t pid;
|
||||
pid_t pid = (pid_t)(-1);
|
||||
char *abs_homedir = NULL;
|
||||
|
||||
pgmname = gnupg_module_name (GNUPG_MODULE_NAME_CONNECT_AGENT);
|
||||
|
|
|
@ -280,7 +280,7 @@ query_swdb (estream_t out, const char *name, const char *current_version)
|
|||
gnupg_isotime_t value_date = {0};
|
||||
char *value_size = NULL;
|
||||
char *value_sha2 = NULL;
|
||||
unsigned long value_size_ul;
|
||||
unsigned long value_size_ul = 0;
|
||||
int status, i;
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue