summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-03-05 11:20:21 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-03-05 11:20:21 (GMT)
commit665e03a336861b9001cec4f01cb7ed37177578cc (patch)
tree63b2e1f636b5ebc9c0a44e4e90e20dc2dbe1c703 /unix
parent6f5d6107545bbd42e380fe0e297d9e13fa8816d3 (diff)
parent75e8b346e2193f1c524cbbb741583e6ab4dfc417 (diff)
downloadtcl-665e03a336861b9001cec4f01cb7ed37177578cc.zip
tcl-665e03a336861b9001cec4f01cb7ed37177578cc.tar.gz
tcl-665e03a336861b9001cec4f01cb7ed37177578cc.tar.bz2
Merge 8.7
Diffstat (limited to 'unix')
-rw-r--r--unix/tclXtNotify.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/unix/tclXtNotify.c b/unix/tclXtNotify.c
index 79dd154..b7a1ea8 100644
--- a/unix/tclXtNotify.c
+++ b/unix/tclXtNotify.c
@@ -181,7 +181,13 @@ TclSetAppContext(
void
InitNotifier(void)
{
- Tcl_NotifierProcs np;
+ static const Tcl_NotifierProcs np =
+ SetTimer,
+ WaitForEvent,
+ CreateFileHandler,
+ DeleteFileHandler,
+ NULL, NULL, NULL, NULL
+ };
/*
* Only reinitialize if we are not in exit handling. The notifier can get
@@ -193,11 +199,6 @@ InitNotifier(void)
return;
}
- memset(&np, 0, sizeof(np));
- np.createFileHandlerProc = CreateFileHandler;
- np.deleteFileHandlerProc = DeleteFileHandler;
- np.setTimerProc = SetTimer;
- np.waitForEventProc = WaitForEvent;
Tcl_SetNotifier(&np);
/*