if (ex != NULL && p - buf->begin == (gint)ex->pos) {
token->begin = "exception";
token->len = sizeof ("exception") - 1;
+ processed = token->len;
state = skip_exception;
continue;
}
*rl = processed;
}
- token->len = p - token->begin;
- g_assert (token->len > 0);
- *cur = p;
+ if (token->len == 0) {
+ token->len = p - token->begin;
+ g_assert (token->len > 0);
+ *cur = p;
+ }
return TRUE;
}
GList *cur = exceptions;
token_get_function func;
- if (len == 0 || text == NULL) {
+ if (text == NULL) {
return NULL;
}