diff options
author | Neil <nyamatongwe@gmail.com> | 2023-11-19 09:15:08 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2023-11-19 09:15:08 +1100 |
commit | 762e8ca837a435831f5e31a65ca1772ee588540e (patch) | |
tree | 9f5462ca845c78b980fc1cb45d22c52128edd85f | |
parent | 236dae2dd176c2d48471ad5dc3f96c1c3f7584c0 (diff) | |
download | scintilla-mirror-762e8ca837a435831f5e31a65ca1772ee588540e.tar.gz |
Avoid warning for uninitialized variable.
-rw-r--r-- | src/CallTip.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CallTip.cxx b/src/CallTip.cxx index 188c9068e..db62c4ed1 100644 --- a/src/CallTip.cxx +++ b/src/CallTip.cxx @@ -164,7 +164,7 @@ int CallTip::DrawChunk(Surface *surface, int x, std::string_view sv, size_t startSeg = 0; for (const size_t endSeg : ends) { assert(endSeg > 0); - int xEnd; + int xEnd = 0; if (IsArrowCharacter(sv[startSeg])) { xEnd = x + widthArrow; const bool upArrow = sv[startSeg] == '\001'; |