summaryrefslogtreecommitdiffstats
path: root/unix/tclXtNotify.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-03-04 16:15:04 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-03-04 16:15:04 (GMT)
commita4f421b6eb3edb7aa7247e169d6628bae0641b34 (patch)
tree80236084b66488a59f5c95e0188f861b88f3cd82 /unix/tclXtNotify.c
parent9f8ca234489c677193efb409fef485ce4774e8c6 (diff)
downloadtcl-a4f421b6eb3edb7aa7247e169d6628bae0641b34.zip
tcl-a4f421b6eb3edb7aa7247e169d6628bae0641b34.tar.gz
tcl-a4f421b6eb3edb7aa7247e169d6628bae0641b34.tar.bz2
Fix [8d8bb39962]: incorrect notifier initialization in tclXtNotify.c
Diffstat (limited to 'unix/tclXtNotify.c')
-rw-r--r--unix/tclXtNotify.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/unix/tclXtNotify.c b/unix/tclXtNotify.c
index a5d92d6..dcd9abe 100644
--- a/unix/tclXtNotify.c
+++ b/unix/tclXtNotify.c
@@ -193,14 +193,11 @@ InitNotifier(void)
return;
}
+ memset(&np, 0, sizeof(np));
np.createFileHandlerProc = CreateFileHandler;
np.deleteFileHandlerProc = DeleteFileHandler;
np.setTimerProc = SetTimer;
np.waitForEventProc = WaitForEvent;
- np.initNotifierProc = Tcl_InitNotifier;
- np.finalizeNotifierProc = Tcl_FinalizeNotifier;
- np.alertNotifierProc = Tcl_AlertNotifier;
- np.serviceModeHookProc = Tcl_ServiceModeHook;
Tcl_SetNotifier(&np);
/*
@@ -209,7 +206,6 @@ InitNotifier(void)
*/
initialized = 1;
- memset(&np, 0, sizeof(np));
Tcl_CreateExitHandler(NotifierExitHandler, NULL);
}