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@g10code.com>
This commit is contained in:
parent
57c1259308
commit
bfb3a01a0c
@ -996,7 +996,7 @@ static gpgme_error_t
|
|||||||
gpgconf_config_dir_cb (void *hook, char *line)
|
gpgconf_config_dir_cb (void *hook, char *line)
|
||||||
{
|
{
|
||||||
/* This is an input- and output-parameter. */
|
/* 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);
|
int len = strlen(data->what);
|
||||||
|
|
||||||
if (!strncmp(line, data->what, len) && line[len] == ':')
|
if (!strncmp(line, data->what, len) && line[len] == ':')
|
||||||
|
Loading…
Reference in New Issue
Block a user