summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Misc/NEWS3
-rw-r--r--Modules/_tkinter.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index a960f2fa29..62099bfa08 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -52,6 +52,9 @@ Core and Builtins
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 f6cd88d69c..70f47036d0 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -996,8 +996,8 @@ AsObj(PyObject *value)
ch);
ckfree(FREECAST outbuf);
return NULL;
-#endif
}
+#endif
outbuf[i] = ch;
}
result = Tcl_NewUnicodeObj(outbuf, size);