Percona-Lab / tpcc-mysql

481 stars 188 forks source link

Uninitialized data in the loader #15

Open OlegGalizin opened 6 years ago

OlegGalizin commented 6 years ago

Not all data in the array has been initialized for (i = 0; i < MAXITEMS / 10; i++) orig[i] = 0; I think use int orig[MAXITEMS+1] = {0}; is better.

It was found by valgrind.