Commit 34d24819 authored by claes's avatar claes

Uninitialized 'phase' caused scan to terminate

parent 24f18fb2
/* /*
* Proview $Id: rt_plc_thread.c,v 1.14 2008-09-23 07:20:51 claes Exp $ * Proview $Id: rt_plc_thread.c,v 1.15 2008-11-10 15:38:48 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -272,7 +272,7 @@ scan ( ...@@ -272,7 +272,7 @@ scan (
time_Adiff(&delta, &tp->sync_time, &tp->after_scan); time_Adiff(&delta, &tp->sync_time, &tp->after_scan);
if (time_Dcomp(&delta, NULL) > 0) { if (time_Dcomp(&delta, NULL) > 0) {
pwr_tStatus sts; pwr_tStatus sts;
int phase; int phase = 0;
if (tp->csup_lh != NULL) { if (tp->csup_lh != NULL) {
pwr_tTime now; pwr_tTime now;
...@@ -286,7 +286,6 @@ scan ( ...@@ -286,7 +286,6 @@ scan (
#if defined OS_LYNX && USE_RT_TIMER #if defined OS_LYNX && USE_RT_TIMER
sem_wait(&tp->ScanSem); sem_wait(&tp->ScanSem);
phase = 0;
#else #else
/* REMARK /* REMARK
* que_Get makes use of pthread_cond_timedwait. * que_Get makes use of pthread_cond_timedwait.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment