From eaa2770c80f8f3b168b99021e4258d696523d38a Mon Sep 17 00:00:00 2001 From: "Daniel T. Borelli" Date: Sat, 16 Nov 2019 15:14:30 +1000 Subject: Dereference double pointer before assigning NULL Daniel T. Borelli Signed-off-by: Allan McRae --- lib/libalpm/signing.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libalpm/signing.c b/lib/libalpm/signing.c index cab31f8e..3c4f883f 100644 --- a/lib/libalpm/signing.c +++ b/lib/libalpm/signing.c @@ -479,7 +479,7 @@ static int email_from_uid(const char *uid, char **email) char *start, *end; if (uid == NULL) { - email = NULL; + *email = NULL; return -1; } @@ -492,7 +492,7 @@ static int email_from_uid(const char *uid, char **email) STRNDUP(*email, start+1, end-start-1, return -1); return 0; } else { - email = NULL; + *email = NULL; return -1; } } -- cgit v1.2.3-70-g09d2