4372. [bug] Address undefined behaviour in libt_api. [RT #42480]

(cherry picked from commit a0f5a5e3c5)
This commit is contained in:
Mark Andrews
2016-05-26 11:57:16 +10:00
parent 08da9c0bc0
commit b413f4e54d
2 changed files with 4 additions and 2 deletions

View File

@@ -295,7 +295,7 @@ t_main(int argc, char **argv)
tnum = 0;
pts = &T_testlist[0];
while (*pts->pfv != NULL) {
while (pts->pfv != NULL) {
if (T_tvec[tnum / 8] & (0x01 << (tnum % 8))) {
#ifndef WIN32
if (subprocs) {
@@ -841,7 +841,7 @@ t_settests(const testspec_t list[]) {
pts = &list[0];
for (tnum = 0; tnum < T_MAXTESTS - 1; pts++, tnum++) {
if (*pts->pfv == NULL)
if (pts->pfv == NULL)
break;
T_testlist[tnum] = *pts;
}