aboutsummaryrefslogtreecommitdiff
path: root/src/SetupGroup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/SetupGroup.c')
-rw-r--r--src/SetupGroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SetupGroup.c b/src/SetupGroup.c
index 6b2763c..029419f 100644
--- a/src/SetupGroup.c
+++ b/src/SetupGroup.c
@@ -134,7 +134,7 @@ static int PUGH_SetupGAGroup (pGH *newGH,
so initialize them to zero */
perme = calloc (dim, sizeof (int));
nprocs = calloc (dim, sizeof (int));
- if (! (perme && nprocs))
+ if (dim && ! (perme && nprocs))
{
CCTK_WARN (0, "Memory allocation error in PUGH_SetupGAGroup");
}