beremiz
Clone
Summary
Browse
Changes
Graph
Added initialization of abort_code and result_size to prevent warning message if not used in following code
2013-04-13, Laurent Bessard
68beaf825a20
Parents
03cf08190ac4
Children
1f2c3fdd70d0
Added initialization of abort_code and result_size to prevent warning message if not used in following code
1 files changed, 3 insertions(+), 0 deletions(-)
+3
-0
etherlab/plc_etherlab.c
--- a/etherlab/plc_etherlab.c Sat Apr 13 01:39:05 2013 +0200
+++ b/etherlab/plc_etherlab.c Sat Apr 13 01:40:31 2013 +0200
@@ -47,6 +47,9 @@
uint32_t abort_code;
size_t result_size;
+ abort_code = 0;
+ result_size = 0;
+
master = ecrt_request_master(%(master_number)d);
if (!master) {
SLOGF(LOG_CRITICAL, "EtherCAT master request failed!");