[Pkg-gnupg-commit] [gpgme] 69/103: Fix a couple of bugs pointed out by clang compiler warnings.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Thu Dec 14 18:53:05 UTC 2017
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gpgme.
commit bfb3a01a0c55aa327dcab061fa808672362cb09d
Author: Marcus Brinkmann <marcus.brinkmann at ruhr-uni-bochum.de>
Date: Wed Aug 23 15:38:11 2017 +0200
Fix a couple of bugs pointed out by clang compiler warnings.
* src/engine-gpgconf.c (gpgconf_config_dir_cb): Fix cast.
* src/key.c (_gpgme_key_add_sig): Fix pointer reference.
Signed-off-by: Marcus Brinkmann <mb at g10code.com>
---
src/engine-gpgconf.c | 2 +-
src/key.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/engine-gpgconf.c b/src/engine-gpgconf.c
index 84d8df7..ba5a73d 100644
--- a/src/engine-gpgconf.c
+++ b/src/engine-gpgconf.c
@@ -996,7 +996,7 @@ static gpgme_error_t
gpgconf_config_dir_cb (void *hook, char *line)
{
/* This is an input- and output-parameter. */
- struct gpgconf_config_dir_s *data = (char **) hook;
+ struct gpgconf_config_dir_s *data = (struct gpgconf_config_dir_s *) hook;
int len = strlen(data->what);
if (!strncmp(line, data->what, len) && line[len] == ':')
diff --git a/src/key.c b/src/key.c
index e2e30db..bb4d5fd 100644
--- a/src/key.c
+++ b/src/key.c
@@ -292,7 +292,7 @@ _gpgme_key_add_sig (gpgme_key_t key, char *src)
&sig->comment, dst);
}
else
- sig->uid = '\0';
+ sig->uid[0] = '\0';
if (!uid->signatures)
uid->signatures = sig;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git
More information about the Pkg-gnupg-commit
mailing list