Added initialization of abort_code and result_size to prevent warning message if not used in following code
authorLaurent Bessard
Sat, 13 Apr 2013 01:40:31 +0200
changeset 2123 68beaf825a20
parent 2122 03cf08190ac4
child 2124 1f2c3fdd70d0
Added initialization of abort_code and result_size to prevent warning message if not used in following code
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!");