diff options
author | nyamatongwe <devnull@localhost> | 2012-07-02 11:50:24 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2012-07-02 11:50:24 +1000 |
commit | f27a64f6a263a7f3ae44e9ae15a6f8f94a11c854 (patch) | |
tree | 51273eebb01bcdfc9870dfb3566c7451fa209f04 /src | |
parent | d8421fd881a326ab3baeb465a58fe5afff548b65 (diff) | |
download | scintilla-mirror-f27a64f6a263a7f3ae44e9ae15a6f8f94a11c854.tar.gz |
Reduce scope of variable.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index c1f30e124..e88458551 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -6944,10 +6944,10 @@ void Editor::EnsureLineVisible(int lineDoc, bool enforcePolicy) { } int Editor::GetTag(char *tagValue, int tagNumber) { - char name[3] = "\\?"; const char *text = 0; int length = 0; if ((tagNumber >= 1) && (tagNumber <= 9)) { + char name[3] = "\\?"; name[1] = static_cast<char>(tagNumber + '0'); length = 2; text = pdoc->SubstituteByPosition(name, &length); |