[PATCH gpgme] Remove duplicate character passed to strchr.
Collin Funk
collin.funk1 at gmail.com
Thu Jul 3 04:51:54 CEST 2025
* src/keylist.c (parse_sec_field15): Remove duplicate '0' character.
Signed-off-by: Collin Funk <collin.funk1 at gmail.com>
---
src/keylist.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/keylist.c b/src/keylist.c
index c0bf2155..7d4c706a 100644
--- a/src/keylist.c
+++ b/src/keylist.c
@@ -454,7 +454,7 @@ parse_sec_field15 (gpgme_key_t key, gpgme_subkey_t subkey, char *field)
subkey->secret = 0;
key->secret = 1;
}
- else if (strchr ("01234567890ABCDEFabcdef", *field))
+ else if (strchr ("0123456789ABCDEFabcdef", *field))
{
/* Fields starts with a hex digit; thus it is a serial number. */
key->secret = 1;
--
2.50.0
More information about the Gnupg-devel
mailing list