Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel T. Borelli <danieltborelli@gmail.com>2019-11-16 15:14:30 +1000
committerAllan McRae <allan@archlinux.org>2019-11-16 15:14:30 +1000
commiteaa2770c80f8f3b168b99021e4258d696523d38a (patch)
tree869b86ee3c7b925582d8f65057c6a1149e278327
parent6fb233d0eed9de2bf2f511001bb27a9c934ae8f9 (diff)
Dereference double pointer before assigning NULL
Daniel T. Borelli <danieltborelli@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
-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;
}
}