marshal the parameters to the interpreter thread. */
Tkapp_CallEvent *ev;
Tcl_Condition cond = NULL;
- PyObject *exc;
+ PyObject *exc = NULL; // init to make static analyzers happy
if (!WaitForMainloop(self))
return NULL;
ev = (Tkapp_CallEvent*)attemptckalloc(sizeof(Tkapp_CallEvent));
TkappObject *self = (TkappObject*)selfptr;
if (self->threaded && self->thread_id != Tcl_GetCurrentThread()) {
VarEvent *ev;
- PyObject *res, *exc;
+ // init 'res' and 'exc' to make static analyzers happy
+ PyObject *res = NULL, *exc = NULL;
Tcl_Condition cond = NULL;
/* The current thread is not the interpreter thread. Marshal
data->self = self;
data->func = Py_NewRef(func);
if (self->threaded && self->thread_id != Tcl_GetCurrentThread()) {
+ err = 0; // init to make static analyzers happy
+
Tcl_Condition cond = NULL;
CommandEvent *ev = (CommandEvent*)attemptckalloc(sizeof(CommandEvent));
if (ev == NULL) {
TRACE(self, ("((sss))", "rename", name, ""));
if (self->threaded && self->thread_id != Tcl_GetCurrentThread()) {
+ err = 0; // init to make static analyzers happy
+
Tcl_Condition cond = NULL;
CommandEvent *ev;
ev = (CommandEvent*)attemptckalloc(sizeof(CommandEvent));