This is an automated email from the ASF dual-hosted git repository.

astitcher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git


The following commit(s) were added to refs/heads/master by this push:
     new 178eead  NO-JIRA: [c] Fix typo in sizeof (wrong, bigger, type used)
178eead is described below

commit 178eead5a95efd2eb4c985b81f8bd8d3de382397
Author: Jiri Danek <[email protected]>
AuthorDate: Fri Feb 1 11:47:26 2019 +0100

    NO-JIRA: [c] Fix typo in sizeof (wrong, bigger, type used)
---
 c/src/proactor/libuv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/c/src/proactor/libuv.c b/c/src/proactor/libuv.c
index b542b20..c570d16 100644
--- a/c/src/proactor/libuv.c
+++ b/c/src/proactor/libuv.c
@@ -656,7 +656,7 @@ static void leader_listen_lh(pn_listener_t *l) {
     for (struct addrinfo *ai = l->addr.getaddrinfo.addrinfo; ai; ai = 
ai->ai_next) {
       ++len;
     }
-    l->addrs = (pn_netaddr_t*)calloc(len, sizeof(lsocket_t));
+    l->addrs = (pn_netaddr_t*)calloc(len, sizeof(pn_netaddr_t));
 
     /* Find the working addresses */
     for (struct addrinfo *ai = l->addr.getaddrinfo.addrinfo; ai; ai = 
ai->ai_next) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to