test_static_idt: fix unininitialized variable

The divide-by-zero test was using an uninitialized variable that
Coverity was unhappy about. Simple fix to just initialize to any non
zero value.

Change-Id: I9e5865a99e7a8eb3ee52421cc3dcb6717dca1ad1
Coverity-ID: 152053
Signed-off-by: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
This commit is contained in:
Inaky Perez-Gonzalez 2016-11-18 11:03:36 -08:00 committed by Anas Nashif
commit db0e9aea51

View file

@ -200,6 +200,7 @@ void main(void)
* Use excHandlerExecuted instead of 0 to prevent the compiler issuing a
* 'divide by zero' warning.
*/
error = 32;
error = error / excHandlerExecuted;
if (excHandlerExecuted == 0) {