From 89ae8f214e33d2473dd6a0075d1a019cf0572c2d Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Tue, 29 Sep 2015 23:27:25 -0700 Subject: [PATCH] Initialize status in HALInitialize. Change-Id: If6230f949ba0dc1061186b1877aaf34a4dd8a987 tGlobal::create() expects the incoming status to be 0. --- hal/lib/Athena/HALAthena.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hal/lib/Athena/HALAthena.cpp b/hal/lib/Athena/HALAthena.cpp index d41370ec02..f316b5def7 100644 --- a/hal/lib/Athena/HALAthena.cpp +++ b/hal/lib/Athena/HALAthena.cpp @@ -212,7 +212,7 @@ int HALInitialize(int mode) nFPGA::nRoboRIO_FPGANamespace::g_currentTargetClass = nLoadOut::kTargetClass_RoboRIO; - int32_t status; + int32_t status = 0; global = tGlobal::create(&status); watchdog = tSysWatchdog::create(&status);