From f27a64f6a263a7f3ae44e9ae15a6f8f94a11c854 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 2 Jul 2012 11:50:24 +1000 Subject: Reduce scope of variable. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(tagNumber + '0'); length = 2; text = pdoc->SubstituteByPosition(name, &length); -- cgit v1.2.3