summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-06-23 15:24:13 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-06-23 15:24:13 (GMT)
commitc1617bb90af0cb596871fea41ebc5f36ea1ea89b (patch)
tree2a31e334a2ff149ce2ff75b0f486a1cba19a0d32 /generic
parentc3c9cfa9f1c04df3a63711f081e1973aaddbb8a3 (diff)
downloadtk-c1617bb90af0cb596871fea41ebc5f36ea1ea89b.zip
tk-c1617bb90af0cb596871fea41ebc5f36ea1ea89b.tar.gz
tk-c1617bb90af0cb596871fea41ebc5f36ea1ea89b.tar.bz2
Fix [fc59158961]: Segfault when .text configure
Diffstat (limited to 'generic')
-rw-r--r--generic/tkText.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkText.c b/generic/tkText.c
index 3cc901c..119f229 100644
--- a/generic/tkText.c
+++ b/generic/tkText.c
@@ -6787,7 +6787,7 @@ GetLineStartEnd(
(void)dummy;
(void)tkwin;
- if ((internalOffset == TCL_INDEX_NONE) || (recordPtr == NULL)) {
+ if (linePtr == NULL) {
return Tcl_NewObj();
}
return Tcl_NewWideIntObj(1 + TkBTreeLinesTo(NULL, linePtr));