Fix uninitialized fd and status in Data_Stream constructors

Initialize fd=-1 and status=0 in MySQL_Data_Stream and PgSQL_Data_Stream
constructors. These fields were not initialized, causing Valgrind
errors when GPFC_Statuses2() checked mybe->server_myds->status and fd.
pull/5374/head
Rene Cannao 2 months ago
parent 2af3b0d333
commit 7c67eb25f1

@ -239,6 +239,7 @@ PgSQL_Data_Stream::PgSQL_Data_Stream() {
connect_tries = 0;
poll_fds_idx = -1;
//resultset_length = 0;
fd = -1;
revents = 0;

@ -241,6 +241,8 @@ MySQL_Data_Stream::MySQL_Data_Stream() {
connect_tries=0;
poll_fds_idx=-1;
resultset_length=0;
status=0;
fd=-1;
revents = 0;

Loading…
Cancel
Save