[PATCH 0/1] fix initialization problems

Yinan Liu posted 1 patch 4 years, 5 months ago
scripts/sorttable.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
[PATCH 0/1] fix initialization problems
Posted by Yinan Liu 4 years, 5 months ago
Hi,steven and Nathan

Thanks to Nathan, I realize that there are some problems with initialization.
Initialization of pthreads and mstructs may fail or be skipped, in which case 
it is possible to use uninitialized values in "out" logic. I'm not sure if 
such an error would happen, but it's certainly safe to initialize it.
 
I use mcount_sort_pthread as a global variable, which is consistent with 
orc_sort_pthread. And initialize the mstruct in function do_sort.

Yinan Liu (1):
  script/sorttable: fix some initialization problems

 scripts/sorttable.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

-- 
2.19.1.6.gb485710b