Commit 41c3b1d7 authored by Daniel T. Borelli's avatar Daniel T. Borelli Committed by Andrew Gregory
Browse files

Dereference double pointer before assigning NULL



Daniel T. Borelli <danieltborelli@gmail.com>
Signed-off-by: Allan McRae's avatarAllan McRae <allan@archlinux.org>
(cherry picked from commit eaa2770c)
parent d6dcc936
......@@ -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;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment