diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-18 14:22:03 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-18 14:22:03 +0200 |
commit | 2bd14960bf095c6e75f1834a8cd33d274d47545a (patch) | |
tree | 26868263ebdf59bcf0f315bb555f97dc93dc88e3 /src/ui/translation.c | |
parent | 480fe2f859b191584113de6e483121d3893eaf3e (diff) |
Translation: Fixed use of uninitialized variable
Diffstat (limited to 'src/ui/translation.c')
-rw-r--r-- | src/ui/translation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/translation.c b/src/ui/translation.c index bbc1763e..2c7a9f30 100644 --- a/src/ui/translation.c +++ b/src/ui/translation.c | |||
@@ -360,7 +360,7 @@ static iBool processResult_Translation_(iTranslation *d) { | |||
360 | if (matchRange_RegExp(pattern, range_Block(resultData), &m)) { | 360 | if (matchRange_RegExp(pattern, range_Block(resultData), &m)) { |
361 | iString *translation = unquote_String_(collect_String(captured_RegExpMatch(&m, 1))); | 361 | iString *translation = unquote_String_(collect_String(captured_RegExpMatch(&m, 1))); |
362 | iString *marked = collectNew_String(); | 362 | iString *marked = collectNew_String(); |
363 | iRangecc line; | 363 | iRangecc line = iNullRange; |
364 | size_t lineIndex = 0; | 364 | size_t lineIndex = 0; |
365 | while (nextSplit_Rangecc(range_String(translation), "\n", &line)) { | 365 | while (nextSplit_Rangecc(range_String(translation), "\n", &line)) { |
366 | iRangecc cleanLine = trimmed_Rangecc(line); | 366 | iRangecc cleanLine = trimmed_Rangecc(line); |