#15094: fix incorrectly placed #endif in _tkinter.c.
Patch by Serhiy Storchaka.
diff --git a/Misc/NEWS b/Misc/NEWS
index a960f2f..62099bf 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -52,6 +52,9 @@
Library
-------
+- Issue #15094: Incorrectly placed #endif in _tkinter.c.
+ Patch by Serhiy Storchaka.
+
- Issue #13922: argparse no longer incorrectly strips '--'s that appear
after the first one.
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index f6cd88d..70f4703 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -996,8 +996,8 @@
ch);
ckfree(FREECAST outbuf);
return NULL;
-#endif
}
+#endif
outbuf[i] = ch;
}
result = Tcl_NewUnicodeObj(outbuf, size);