diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-24 09:45:36 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-24 09:45:36 +0300 |
commit | fbf36dfbf77701d647f0133f1532ebc42eb05e32 (patch) | |
tree | 6d32e92db2d4d9222fe58390669de90a482f71a5 /src/gmutil.c | |
parent | 1064d21387d7c9e1b8468c63a24667a50894e465 (diff) |
Initialize RegExpMatches
Diffstat (limited to 'src/gmutil.c')
-rw-r--r-- | src/gmutil.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gmutil.c b/src/gmutil.c index cd00eb1d..2927953d 100644 --- a/src/gmutil.c +++ b/src/gmutil.c | |||
@@ -34,6 +34,7 @@ void init_Url(iUrl *d, const iString *text) { | |||
34 | caseInsensitive_RegExpOption); | 34 | caseInsensitive_RegExpOption); |
35 | } | 35 | } |
36 | iRegExpMatch m; | 36 | iRegExpMatch m; |
37 | init_RegExpMatch(&m); | ||
37 | if (matchString_RegExp(absoluteUrlPattern_, text, &m)) { | 38 | if (matchString_RegExp(absoluteUrlPattern_, text, &m)) { |
38 | d->protocol = capturedRange_RegExpMatch(&m, 1); | 39 | d->protocol = capturedRange_RegExpMatch(&m, 1); |
39 | d->host = capturedRange_RegExpMatch(&m, 2); | 40 | d->host = capturedRange_RegExpMatch(&m, 2); |