From 389e5b96bdf1eda43f53ede60942ef5d0125cc52 Mon Sep 17 00:00:00 2001
From: "Peter W. Draper" <p.w.draper@durham.ac.uk>
Date: Mon, 19 Dec 2016 16:14:49 +0000
Subject: [PATCH] Pass pointer address

---
 src/proxy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/proxy.c b/src/proxy.c
index 764448faa3..e68fe9cb3a 100644
--- a/src/proxy.c
+++ b/src/proxy.c
@@ -102,7 +102,7 @@ void proxy_cells_exch2(struct proxy *p) {
 
   /* Re-allocate the pcell_in buffer. */
   if (p->pcells_in != NULL) free(p->pcells_in);
-  if (posix_memalign((void **)p->pcells_in, SWIFT_STRUCT_ALIGNMENT,
+  if (posix_memalign((void **)&p->pcells_in, SWIFT_STRUCT_ALIGNMENT,
                      sizeof(struct pcell) * p->size_pcells_in) != 0)
     error("Failed to allocate pcell_in buffer.");
 
-- 
GitLab