summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDaniel T. Borelli <danieltborelli@gmail.com>2019-11-16 06:14:30 +0100
committerAndrew Gregory <andrew@archlinux.org>2020-01-14 10:24:50 +0100
commit41c3b1d78c3807beb4246624b20a31e374fb5af1 (patch)
tree7007f7dde34f83ba67f6209cb65dec380c87af01 /lib
parentd6dcc936457815cdda87a8507cf82169b437e4d2 (diff)
downloadpacman-41c3b1d78c3807beb4246624b20a31e374fb5af1.tar.gz
pacman-41c3b1d78c3807beb4246624b20a31e374fb5af1.tar.xz
Dereference double pointer before assigning NULL
Daniel T. Borelli <danieltborelli@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org> (cherry picked from commit eaa2770c80f8f3b168b99021e4258d696523d38a)
Diffstat (limited to 'lib')
-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;
}
}