[rtems commit] ada/sp07: Fix uninitialized variable

Sebastian Huber sebh at rtems.org
Fri Dec 1 14:23:38 UTC 2017


Module:    rtems
Branch:    master
Commit:    dda8142f275222b147bc91494ebda7f8c8e4059b
Changeset: http://git.rtems.org/rtems/commit/?id=dda8142f275222b147bc91494ebda7f8c8e4059b

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Dec  1 15:22:02 2017 +0100

ada/sp07: Fix uninitialized variable

Bug was introduced by d5154d0f6a04f3b7ed59d9a09038576fe2640756.

Updates #2493.

---

 testsuites/ada/sptests/sp07/sptest.adb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/testsuites/ada/sptests/sp07/sptest.adb b/testsuites/ada/sptests/sp07/sptest.adb
index e008336..2ab9cf6 100644
--- a/testsuites/ada/sptests/sp07/sptest.adb
+++ b/testsuites/ada/sptests/sp07/sptest.adb
@@ -316,6 +316,8 @@ package body SPTEST is
       PREVIOUS_PRIORITY : RTEMS.TASKS.PRIORITY;
    begin
 
+      THE_PRIORITY := 4;
+
       loop
 
          THE_PRIORITY := THE_PRIORITY - 1;



More information about the vc mailing list