summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libalpm/signing.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libalpm/signing.c b/lib/libalpm/signing.c
index f9569ac5..30d057a3 100644
--- a/lib/libalpm/signing.c
+++ b/lib/libalpm/signing.c
@@ -478,6 +478,11 @@ static int email_from_uid(const char *uid, char **email)
{
char *start, *end;
+ if (uid == NULL) {
+ email = NULL;
+ return -1;
+ }
+
start = strrchr(uid, '<');
if(start) {
end = strrchr(start, '>');