Skip to content

Commit

Permalink
Eliminate segfault in entry-7.1 ttk test.
Browse files Browse the repository at this point in the history
  • Loading branch information
fvogelnew1 committed Dec 2, 2023
1 parent d9ba904 commit 698942f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generic/ttk/ttkCache.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ static Tcl_Obj *Ttk_Use(
return Tcl_GetHashValue(entryPtr);
#else
Ttk_Cached *cachedPtr = Tcl_GetHashValue(entryPtr);
return cachedPtr->objPtr;
return cachedPtr ? cachedPtr->objPtr : NULL;
#endif
}

Expand Down
2 changes: 1 addition & 1 deletion library/xmfbox.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ proc ::tk::MotifFDialog_ActivateFEnt {w} {
# ::tk::MotifFDialog_ActivateSEnt --
#
# This procedure is called when the user presses Return inside
# the "selection" entry. It sets the ::tk::Priv(selectFilePath)
# the "selection" entry. It sets the ::tk::dialog::file::selectFilePath
# variable so that the vwait loop in tk::MotifFDialog will be
# terminated.
#
Expand Down

0 comments on commit 698942f

Please sign in to comment.