Skip to content

Commit ac05a7e

Browse files
author
Anselm Kruis
committed
merge 3.3-slp (fix typos and compiler warning)
2 parents 3acd739 + e35e29a commit ac05a7e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Stackless/module/stacklessmodule.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -488,10 +488,10 @@ PyStackless_RunWatchdogEx(long timeout, int flags)
488488
PyTaskletObject *old_current, *victim;
489489
PyObject *retval;
490490
int fail;
491-
PyObject* (*old_interrupt)(void);
492-
int old_runflags;
493-
long old_watermark, old_interval;
494-
int interrupt = 0;
491+
PyObject* (*old_interrupt)(void) = NULL;
492+
int old_runflags = 0;
493+
long old_watermark = 0, old_interval = 0;
494+
int interrupt;
495495

496496
if (ts->st.main == NULL)
497497
return PyStackless_RunWatchdog_M(timeout, flags);
@@ -504,11 +504,11 @@ PyStackless_RunWatchdogEx(long timeout, int flags)
504504
return NULL;
505505

506506
old_current = ts->st.current;
507-
/* store wathhdog state and set up a new one, if we are the active intterupt watchdog */
507+
/* store watchdog state and set up a new one, if we are the active interrupt watchdog */
508508
if (interrupt) {
509509
old_interrupt = ts->st.interrupt;
510510
old_runflags = ts->st.runflags;
511-
old_watermark = ts->st.tick_watermark;
511+
old_watermark = ts->st.tick_watermark;
512512
old_interval = ts->st.interval;
513513

514514
if (timeout <= 0)

0 commit comments

Comments
 (0)