Skip to content

Commit

Permalink
fix some of warnings from fresh Coverity report
Browse files Browse the repository at this point in the history
  • Loading branch information
alexott committed Sep 3, 2017
1 parent 25eb5bd commit 23d2f25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions include/soci/firebird/soci-firebird.h
Expand Up @@ -63,7 +63,7 @@ struct firebird_statement_backend;
struct firebird_standard_into_type_backend : details::standard_into_type_backend
{
firebird_standard_into_type_backend(firebird_statement_backend &st)
: statement_(st), buf_(NULL), indISCHolder_(0)
: statement_(st), data_(NULL), type_(), position_(0), buf_(NULL), indISCHolder_(0)
{}

virtual void define_by_pos(int &position,
Expand All @@ -89,7 +89,7 @@ struct firebird_standard_into_type_backend : details::standard_into_type_backend
struct firebird_vector_into_type_backend : details::vector_into_type_backend
{
firebird_vector_into_type_backend(firebird_statement_backend &st)
: statement_(st), buf_(NULL), indISCHolder_(0)
: statement_(st), data_(NULL), type_(), position_(0), buf_(NULL), indISCHolder_(0)
{}

virtual void define_by_pos(int &position,
Expand Down Expand Up @@ -117,7 +117,7 @@ struct firebird_vector_into_type_backend : details::vector_into_type_backend
struct firebird_standard_use_type_backend : details::standard_use_type_backend
{
firebird_standard_use_type_backend(firebird_statement_backend &st)
: statement_(st), buf_(NULL), indISCHolder_(0)
: statement_(st), data_(NULL), type_(), position_(0), buf_(NULL), indISCHolder_(0)
{}

virtual void bind_by_pos(int &position,
Expand All @@ -144,7 +144,7 @@ struct firebird_standard_use_type_backend : details::standard_use_type_backend
struct firebird_vector_use_type_backend : details::vector_use_type_backend
{
firebird_vector_use_type_backend(firebird_statement_backend &st)
: statement_(st), inds_(NULL), buf_(NULL), indISCHolder_(0)
: statement_(st), data_(NULL), type_(), position_(0), buf_(NULL), indISCHolder_(0)
{}

virtual void bind_by_pos(int &position,
Expand Down
4 changes: 2 additions & 2 deletions src/backends/firebird/blob.cpp
Expand Up @@ -13,8 +13,8 @@ using namespace soci;
using namespace soci::details::firebird;

firebird_blob_backend::firebird_blob_backend(firebird_session_backend &session)
: session_(session), from_db_(false), bhp_(0), loaded_(false),
max_seg_size_(0)
: session_(session), bid_(), from_db_(false), bhp_(0), data_(),
loaded_(false), max_seg_size_(0)
{}

firebird_blob_backend::~firebird_blob_backend()
Expand Down

0 comments on commit 23d2f25

Please sign in to comment.