File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -488,10 +488,10 @@ PyStackless_RunWatchdogEx(long timeout, int flags)
488
488
PyTaskletObject * old_current , * victim ;
489
489
PyObject * retval ;
490
490
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 ;
495
495
496
496
if (ts -> st .main == NULL )
497
497
return PyStackless_RunWatchdog_M (timeout , flags );
@@ -504,11 +504,11 @@ PyStackless_RunWatchdogEx(long timeout, int flags)
504
504
return NULL ;
505
505
506
506
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 */
508
508
if (interrupt ) {
509
509
old_interrupt = ts -> st .interrupt ;
510
510
old_runflags = ts -> st .runflags ;
511
- old_watermark = ts -> st .tick_watermark ;
511
+ old_watermark = ts -> st .tick_watermark ;
512
512
old_interval = ts -> st .interval ;
513
513
514
514
if (timeout <= 0 )
You can’t perform that action at this time.
0 commit comments