[Python-checkins] r51229 - python/trunk/Modules/_tkinter.c
neal.norwitz
python-checkins at python.org
Sat Aug 12 04:33:39 CEST 2006
Author: neal.norwitz
Date: Sat Aug 12 04:33:36 2006
New Revision: 51229
Modified:
python/trunk/Modules/_tkinter.c
Log:
Don't deref v if it's NULL.
Klocwork #214
Modified: python/trunk/Modules/_tkinter.c
==============================================================================
--- python/trunk/Modules/_tkinter.c (original)
+++ python/trunk/Modules/_tkinter.c Sat Aug 12 04:33:36 2006
@@ -2493,8 +2493,10 @@
}
v = Tktt_New(func);
- v->token = Tcl_CreateTimerHandler(milliseconds, TimerHandler,
- (ClientData)v);
+ if (v) {
+ v->token = Tcl_CreateTimerHandler(milliseconds, TimerHandler,
+ (ClientData)v);
+ }
return (PyObject *) v;
}
More information about the Python-checkins
mailing list