DRILL-5678: Undefined behavior due to un-initialized values in ServerMetaContext
closes #880 Project: http://git-wip-us.apache.org/repos/asf/drill/repo Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/07346c78 Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/07346c78 Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/07346c78 Branch: refs/heads/master Commit: 07346c782102205091f7e93a7fe566fd9019cbea Parents: 4e5a0cb Author: Rob Wu <robw...@gmail.com> Authored: Tue Jul 18 22:55:52 2017 -0700 Committer: Arina Ielchiieva <arina.yelchiy...@gmail.com> Committed: Fri Jul 21 15:48:27 2017 +0300 ---------------------------------------------------------------------- contrib/native/client/src/clientlib/drillClientImpl.cpp | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/drill/blob/07346c78/contrib/native/client/src/clientlib/drillClientImpl.cpp ---------------------------------------------------------------------- diff --git a/contrib/native/client/src/clientlib/drillClientImpl.cpp b/contrib/native/client/src/clientlib/drillClientImpl.cpp index c5ef1a2..1ccc29f 100644 --- a/contrib/native/client/src/clientlib/drillClientImpl.cpp +++ b/contrib/native/client/src/clientlib/drillClientImpl.cpp @@ -2307,6 +2307,10 @@ namespace { // anonymous namespace { // anonymous // Helper class to wait on ServerMeta results struct ServerMetaContext { + ServerMetaContext() : m_done(false), m_status(QRY_FAILURE) + { + ; // Do nothing. + } bool m_done; status_t m_status; exec::user::ServerMeta m_serverMeta;