mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
coverity check bug fix going over end of array
This commit is contained in:
parent
9fc897af7a
commit
f1b431b265
1 changed files with 1 additions and 1 deletions
|
|
@ -345,7 +345,7 @@ static void init_regs( void )
|
|||
struct reg_names *tmp;
|
||||
int i;
|
||||
|
||||
for (i = 0 ; i < Elements(regs) ; i++) {
|
||||
for (i = 0 ; i < Elements(regs)-1 ; i++) {
|
||||
regs[i].idx = reg_names[i].idx;
|
||||
regs[i].closest = ®_names[i];
|
||||
regs[i].flags = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue