Dereference double pointer before assigning NULL
Daniel T. Borelli <danieltborelli@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
6fb233d0ee
commit
eaa2770c80
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue