mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 03:28:07 +00:00
feat(account_creator): set_email deals with undefined email
This commit is contained in:
parent
fc12b101a8
commit
a3fbb53b24
1 changed files with 1 additions and 1 deletions
|
|
@ -505,7 +505,7 @@ const char * linphone_account_creator_get_display_name(const LinphoneAccountCrea
|
|||
}
|
||||
|
||||
LinphoneAccountCreatorEmailStatus linphone_account_creator_set_email(LinphoneAccountCreator *creator, const char *email) {
|
||||
if (!is_matching_regex(email, "^.+@.+\\..*$")) {
|
||||
if (!email || !is_matching_regex(email, "^.+@.+\\..*$")) {
|
||||
return LinphoneAccountCreatorEmailStatusMalformed;
|
||||
}
|
||||
if (!is_matching_regex(email, "^.+@.+\\.[A-Za-z]{2}[A-Za-z]*$")) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue