2002-07-25 Marcus Brinkmann <marcus@g10code.de>

* rungpg.c (_gpgme_gpg_op_keylist_ext): Skip empty string
	patterns.  Reported by St�phane Corth�sy.
This commit is contained in:
Marcus Brinkmann 2002-07-25 15:45:40 +00:00
parent 4ef64980fb
commit b4d7702369
2 changed files with 4 additions and 1 deletions

View File

@ -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 <marcus@g10code.de>
* gpgme.c (gpgme_set_io_cbs): Deal with CTX being NULL.

View File

@ -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++));
}