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:
parent
324f8d7a41
commit
db0e9aea51
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue