[Pkg-gnupg-commit] [libgpg-error] 11/22: Fix NULL segv in new option --desc
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Sat Dec 24 21:19:30 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository libgpg-error.
commit 140a19617c78d5f0e2ac8d7e2c8e7092862ec2fb
Author: Werner Koch <wk at gnupg.org>
Date: Fri Dec 2 22:57:09 2016 +0100
Fix NULL segv in new option --desc
* src/gpg-error.c (print_desc): Shortcur for unknown symbols.
Signed-off-by: Werner Koch <wk at gnupg.org>
---
src/gpg-error.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/gpg-error.c b/src/gpg-error.c
index 4a09e1d..f890883 100644
--- a/src/gpg-error.c
+++ b/src/gpg-error.c
@@ -381,6 +381,9 @@ print_desc (const char *symbol)
int blanklines = 0;
int last_was_keyword = 0;
+ if (!symbol)
+ return;
+
if (!initialized)
{
initialized = 1;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/libgpg-error.git
More information about the Pkg-gnupg-commit
mailing list