lkml.org 
[lkml]   [2022]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/1] fix initialization problems
Date
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

\
 
 \ /
  Last update: 2022-01-17 07:24    [W:0.086 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site