Skip to content

Commit

Permalink
Merge pull request #18769 from ghalliday/issue32068
Browse files Browse the repository at this point in the history
HPCC-32068 Fix some (false postive) coverity warnings

Reviewed-By: Attila Vamos <[email protected]>
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday authored Jul 17, 2024
2 parents 466476f + fd170ff commit 9b62c6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions system/jlib/jsmartsock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class SmartSocketListParser
public:
SmartSocketListParser(const char * text)
{
assertex(text);
fullText = strdup(text);
}

Expand Down Expand Up @@ -235,11 +236,9 @@ CSmartSocketFactory::CSmartSocketFactory(IPropertyTree &service, bool _retry, un
dnsInterval=_dnsInterval;

retry = _retry;
retryInterval = _retryInterval;
if (retry)
{
retryInterval = _retryInterval;
this->start(false);
}
}

CSmartSocketFactory::CSmartSocketFactory(const char *_socklist, IPropertyTree* _tlsConfig, bool _retry, unsigned _retryInterval, unsigned _dnsInterval)
Expand All @@ -261,11 +260,9 @@ CSmartSocketFactory::CSmartSocketFactory(const char *_socklist, IPropertyTree* _
dnsInterval=_dnsInterval;

retry = _retry;
retryInterval = _retryInterval;
if (retry)
{
retryInterval = _retryInterval;
this->start(false);
}
}

CSmartSocketFactory::~CSmartSocketFactory()
Expand Down
2 changes: 1 addition & 1 deletion testing/unittests/jstreamtests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ class JlibStreamStressTest : public CppUnit::TestFixture
public:
CDataProvider & dataProvider;
IBufferedSerialOutputStream * out;
offset_t totalSent;
offset_t totalSent = 0;
unsigned numRows;
};

Expand Down

0 comments on commit 9b62c6f

Please sign in to comment.