summaryrefslogtreecommitdiff
path: root/src/gmdocument.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-24 09:45:36 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-24 09:45:36 +0300
commitfbf36dfbf77701d647f0133f1532ebc42eb05e32 (patch)
tree6d32e92db2d4d9222fe58390669de90a482f71a5 /src/gmdocument.c
parent1064d21387d7c9e1b8468c63a24667a50894e465 (diff)
Initialize RegExpMatches
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r--src/gmdocument.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c
index 89d567b0..5bc16fda 100644
--- a/src/gmdocument.c
+++ b/src/gmdocument.c
@@ -197,6 +197,7 @@ static iRangecc addLink_GmDocument_(iGmDocument *d, iRangecc line, iGmLinkId *li
197 pattern_ = new_RegExp("=>\\s*([^\\s]+)(\\s.*)?", caseInsensitive_RegExpOption); 197 pattern_ = new_RegExp("=>\\s*([^\\s]+)(\\s.*)?", caseInsensitive_RegExpOption);
198 } 198 }
199 iRegExpMatch m; 199 iRegExpMatch m;
200 init_RegExpMatch(&m);
200 if (matchRange_RegExp(pattern_, line, &m)) { 201 if (matchRange_RegExp(pattern_, line, &m)) {
201 iGmLink *link = new_GmLink(); 202 iGmLink *link = new_GmLink();
202 setRange_String(&link->url, capturedRange_RegExpMatch(&m, 1)); 203 setRange_String(&link->url, capturedRange_RegExpMatch(&m, 1));