From da034f7c8fd46ff04b5f4723fe972f2899053e54 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Thu, 25 Jul 2002 15:45:40 +0000 Subject: [PATCH] 2002-07-25 Marcus Brinkmann MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * rungpg.c (_gpgme_gpg_op_keylist_ext): Skip empty string patterns. Reported by St�phane Corth�sy. --- trunk/gpgme/ChangeLog | 3 +++ trunk/gpgme/rungpg.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index 50802c5..c0c7722 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -3,6 +3,9 @@ * wait.c (fdt_global): Make static. Reported by Stéphane Corthésy. + * rungpg.c (_gpgme_gpg_op_keylist_ext): Skip empty string + patterns. Reported by Stéphane Corthésy. + 2002-07-03 Marcus Brinkmann * gpgme.c (gpgme_set_io_cbs): Deal with CTX being NULL. diff --git a/trunk/gpgme/rungpg.c b/trunk/gpgme/rungpg.c index f200d08..15115e5 100644 --- a/trunk/gpgme/rungpg.c +++ b/trunk/gpgme/rungpg.c @@ -1635,7 +1635,7 @@ _gpgme_gpg_op_keylist_ext (GpgObject gpg, const char *pattern[], err = _gpgme_gpg_add_arg (gpg, "--"); if (!err && pattern && *pattern) { - while (*pattern) + while (*pattern && **pattern) err = _gpgme_gpg_add_arg (gpg, *(pattern++)); } -- 2.26.2