diff options
| author | Neil Hodgson <nyamatongwe@gmail.com> | 2018-09-18 12:58:40 +1000 |
|---|---|---|
| committer | Neil Hodgson <nyamatongwe@gmail.com> | 2018-09-18 12:58:40 +1000 |
| commit | d06d0ee3e6cc590b179320f88d33335a5cab1446 (patch) | |
| tree | 4b30e17a3d4a4a2a73dc28a7d05535ab23c10e16 | |
| parent | f70ddda69aa9fc57b635497b0ec298cd766e3399 (diff) | |
| download | scintilla-mirror-d06d0ee3e6cc590b179320f88d33335a5cab1446.tar.gz | |
Backport: Initialize variables to ensure no undefined behaviour.
Backport of changeset 7089:d9edff9c928d.
| -rw-r--r-- | lexers/LexFortran.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lexers/LexFortran.cxx b/lexers/LexFortran.cxx index 3adee5839..28298b3ed 100644 --- a/lexers/LexFortran.cxx +++ b/lexers/LexFortran.cxx @@ -481,11 +481,11 @@ static void FoldFortranDoc(Sci_PositionU startPos, Sci_Position length, int init int levelDeltaNext = 0; const unsigned int nComL = 3; // defines how many comment lines should be before they are folded - Sci_Position nComColB[nComL]; + Sci_Position nComColB[nComL] = {}; Sci_Position nComColF[nComL] = {}; - Sci_Position nComCur; - bool comLineB[nComL]; - bool comLineF[nComL]; + Sci_Position nComCur = 0; + bool comLineB[nComL] = {}; + bool comLineF[nComL] = {}; bool comLineCur; Sci_Position nLineTotal = styler.GetLine(styler.Length()-1) + 1; if (foldComment) { |
