test_static_idt: fix uninitialized variable

Coverity complains about an easy-to-fix uninitialized variable.

Change-Id: I04bf670c7137df25165d4e37f2f7df2d4004c478
Coverity-ID: 152050
Signed-off-by: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
This commit is contained in:
Inaky Perez-Gonzalez 2016-11-18 12:28:48 -08:00 committed by Anas Nashif
commit c7e7089c36

View file

@ -195,6 +195,7 @@ void idtTestTask(void)
* Use excHandlerExecuted instead of 0 to prevent the compiler issuing a
* 'divide by zero' warning.
*/
error = 32; /* avoid static checker uninitialized warnings */
error = error / excHandlerExecuted;
if (excHandlerExecuted == 0) {