aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Reduction.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Reduction.c b/src/Reduction.c
index 7106dea..0ea8998 100644
--- a/src/Reduction.c
+++ b/src/Reduction.c
@@ -276,6 +276,12 @@ int PUGH_ReductionGVs (const cGH *GH,
return (-1);
}
+ if (outvals == NULL)
+ {
+ CCTK_WARN (1, "PUGH_ReductionGVs: NULL pointer passed for output array");
+ return (-1);
+ }
+
outtypesize = CCTK_VarTypeSize (outtype);
if (outtypesize <= 0)
{