Fix compiler warnings
This commit is contained in:
parent
871a06a5bd
commit
f90f812f2b
1 changed files with 2 additions and 1 deletions
|
@ -1111,7 +1111,7 @@ static char *strdup_replace (char *str, const char *replace, char *with) {
|
|||
return joined;
|
||||
}
|
||||
|
||||
static char *tgprpl_normalize_phone_number (const PurpleAccount *account, const char *phone) {
|
||||
static const char *tgprpl_normalize_phone_number (const PurpleAccount *account, const char *phone) {
|
||||
|
||||
// remove all special characters
|
||||
char *a = g_strdup(phone);
|
||||
|
@ -1136,6 +1136,7 @@ static char *tgprpl_normalize_phone_number (const PurpleAccount *account, const
|
|||
regex_t exp;
|
||||
if (regcomp (&exp, "\\+[0-9]+$", REG_EXTENDED) != 0) {
|
||||
warning ("Regex invalid");
|
||||
return NULL;
|
||||
}
|
||||
if (regexec (&exp, normalized, 0, 0, 0) != 0) {
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue