Skip to content

Commit 50a6c11

Browse files
authored
Merge pull request #2182 from pmienk/master
Suppress warning on uninitialized variable use by initializing variable.
2 parents fb59cd1 + 28fbee7 commit 50a6c11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tcp_address.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ int zmq::tcp_address_t::resolve_nic_name (const char *nic_, bool ipv6_, bool is_
182182
{
183183
// Get the addresses.
184184
ifaddrs *ifa = NULL;
185-
int rc;
185+
int rc = 0;
186186
const int max_attempts = 10;
187187
const int backoff_msec = 1;
188188
for (int i = 0; i < max_attempts; i++) {

0 commit comments

Comments
 (0)