diff options
Diffstat (limited to '')
-rw-r--r-- | src/gpgme-json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpgme-json.c b/src/gpgme-json.c index eb5edf4d..3cdd744d 100644 --- a/src/gpgme-json.c +++ b/src/gpgme-json.c @@ -691,7 +691,7 @@ create_keylist_patterns (cjson_t request) tmp = p + 1; } /* The last key is not newline delimted. */ - ret[i++] = xstrdup (tmp); + ret[i++] = *tmp ? xstrdup (tmp) : NULL; ret[i] = NULL; xfree (keystring); |