Don't deref v if it's NULL.

Klocwork #214
This commit is contained in:
Neal Norwitz 2006-08-12 02:33:36 +00:00
parent 421c1319ad
commit 5f17d9a1df
1 changed files with 4 additions and 2 deletions

View File

@ -2493,8 +2493,10 @@ Tkapp_CreateTimerHandler(PyObject *self, PyObject *args)
}
v = Tktt_New(func);
if (v) {
v->token = Tcl_CreateTimerHandler(milliseconds, TimerHandler,
(ClientData)v);
}
return (PyObject *) v;
}