/* We have mailto:// at the beginning */
match->m_begin = pos;
+ if (pos >= cb->begin + 1) {
+ match->st = *(pos - 1);
+ }
+ else {
+ match->st = '\0';
+ }
}
else {
/* Just '@' */
/* Just @ at the start of input */
return FALSE;
}
- }
- if (pos >= cb->begin + 1) {
- match->st = *(pos - 1);
- }
- else {
match->st = '\0';
}
*/
g_assert (*pos == '@');
- if (pos >= cb->end - 2 || pos <= cb->begin + 1) {
+ if (pos >= cb->end - 2 || pos < cb->begin + 1) {
/* Boundary violation */
return FALSE;
}