aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Symmetry.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Symmetry.c b/src/Symmetry.c
index 546ce17..2d9132f 100644
--- a/src/Symmetry.c
+++ b/src/Symmetry.c
@@ -701,13 +701,13 @@ void CartGrid3D_ApplyBC (CCTK_ARGUMENTS)
assert (nvars>=0);
indices = malloc (nvars * sizeof *indices);
- assert (indices);
+ assert (nvars==0 || indices);
faces = malloc (nvars * sizeof *faces);
- assert (faces);
+ assert (nvars==0 || faces);
widths = malloc (nvars * sizeof *widths);
- assert (widths);
+ assert (nvars==0 || widths);
tables = malloc (nvars * sizeof *tables);
- assert (tables);
+ assert (nvars==0 || tables);
ierr = Boundary_SelectedGVs
(cctkGH, nvars, indices, faces, widths, tables, 0);