mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Cleanup: Corrected object initialization using {}
This commit is contained in:
parent
9b5d0a7cdd
commit
5110a83efa
6 changed files with 11 additions and 11 deletions
|
@ -203,7 +203,7 @@ void TLSClient::connect (const std::string& host, const std::string& port)
|
|||
gnutls_session_set_ptr (_session, (void*) this);
|
||||
|
||||
// use IPv4 or IPv6, does not matter.
|
||||
struct addrinfo hints = {0};
|
||||
struct addrinfo hints {};
|
||||
hints.ai_family = AF_UNSPEC;
|
||||
hints.ai_socktype = SOCK_STREAM;
|
||||
hints.ai_flags = AI_PASSIVE; // use my IP
|
||||
|
@ -434,7 +434,7 @@ void TLSClient::recv (std::string& data)
|
|||
int received = 0;
|
||||
|
||||
// Get the encoded length.
|
||||
unsigned char header[4] = {0};
|
||||
unsigned char header[4] {};
|
||||
do
|
||||
{
|
||||
received = gnutls_record_recv (_session, header, 4);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue