diff options
author | dgp <dgp@users.sourceforge.net> | 2012-12-04 17:02:22 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2012-12-04 17:02:22 (GMT) |
commit | 879b6812977f71d6d2174da3e79e3341ab8ba549 (patch) | |
tree | cd8002bc80338c375b21e3ec5c47e7c1aee382c3 /generic/tkTextImage.c | |
parent | 46173c18a5a65efe1003af6a0c3da8125e522841 (diff) | |
parent | 5ae5c226312e499948f5934d1d1e14e33265099b (diff) | |
download | tk-879b6812977f71d6d2174da3e79e3341ab8ba549.zip tk-879b6812977f71d6d2174da3e79e3341ab8ba549.tar.gz tk-879b6812977f71d6d2174da3e79e3341ab8ba549.tar.bz2 |
[Bug 3588824]: bug in image index handling for weird image names
Diffstat (limited to 'generic/tkTextImage.c')
-rw-r--r-- | generic/tkTextImage.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/tkTextImage.c b/generic/tkTextImage.c index 1770cb6..4a98d42 100644 --- a/generic/tkTextImage.c +++ b/generic/tkTextImage.c @@ -786,6 +786,10 @@ TkTextImageIndex( Tcl_HashEntry *hPtr; TkTextSegment *eiPtr; + if (textPtr == NULL) { + return 0; + } + hPtr = Tcl_FindHashEntry(&textPtr->sharedTextPtr->imageTable, name); if (hPtr == NULL) { return 0; |