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:58:20 +10:00
parent 08da9c0bc0
commit b413f4e54d
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -1,3 +1,5 @@
4372. [bug] Address undefined behaviour in libt_api. [RT #42480]
4369. [bug] Fix 'make' and 'make install' out-of-tree python
support. [RT #42484]
+2 -2
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;
}