summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
authorDaniel T. Borelli <danieltborelli@gmail.com>2019-11-16 06:14:30 +0100
committerAllan McRae <allan@archlinux.org>2019-11-16 06:14:30 +0100
commiteaa2770c80f8f3b168b99021e4258d696523d38a (patch)
tree869b86ee3c7b925582d8f65057c6a1149e278327 /lib/libalpm
parent6fb233d0eed9de2bf2f511001bb27a9c934ae8f9 (diff)
downloadpacman-eaa2770c80f8f3b168b99021e4258d696523d38a.tar.gz
pacman-eaa2770c80f8f3b168b99021e4258d696523d38a.tar.xz
Dereference double pointer before assigning NULL
Daniel T. Borelli <danieltborelli@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/signing.c4
1 files 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;
}
}