summaryrefslogtreecommitdiffstats
path: root/gnupgparse.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2014-08-12 14:33:17 -0700
committerKevin McCarthy <kevin@8t8.us>2014-08-12 14:33:17 -0700
commit11e647165f33449037b02673a03d5d5d5251b95c (patch)
tree99442ed99e6b072e54be501c9bb1bb0837713802 /gnupgparse.c
parent835a3b1e7ffaca3aabd6fab9b72455be4319cbc4 (diff)
Wrap pgp_uid_t->addr in NONULL(). (closes #3564)
The previous patch introduced the possibility for addr to be null. Mutt is surprisingly robust against null strings, but there are a few places that should be wrapped in NONULL().
Diffstat (limited to 'gnupgparse.c')
-rw-r--r--gnupgparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnupgparse.c b/gnupgparse.c
index 9abd0360..cd564f88 100644
--- a/gnupgparse.c
+++ b/gnupgparse.c
@@ -294,7 +294,7 @@ static pgp_key_t parse_pub_line (char *buf, int *is_subkey, pgp_key_t k)
if (!is_uid && (*is_subkey && option (OPTPGPIGNORESUB)))
break;
- dprint (2, (debugfile, "user ID: %s\n", p));
+ dprint (2, (debugfile, "user ID: %s\n", NONULL (p)));
uid = safe_calloc (sizeof (pgp_uid_t), 1);
fix_uid (p);