summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorknarf <knarf@17b73243-c579-4c4c-a9d2-2d5706c11dac>2010-09-29 01:25:52 +0000
committerknarf <knarf@17b73243-c579-4c4c-a9d2-2d5706c11dac>2010-09-29 01:25:52 +0000
commitef4b3746b656171872d8becdc9e2b634b49af4bc (patch)
treef7e512bd605dda6f14f6cc248d8f50b9cd1c28e2 /src/main
parent64841c527152a0301f9f4d308d9336a445ffea12 (diff)
fix last commit (ooops). ValidateModifiers() is apparently called for all modifiers, and some of them apparently allow non-full variable names. My mistake, not corrected.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4639 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main')
-rw-r--r--src/main/ScheduleInterface.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/ScheduleInterface.c b/src/main/ScheduleInterface.c
index 4bd3b892..b471eea7 100644
--- a/src/main/ScheduleInterface.c
+++ b/src/main/ScheduleInterface.c
@@ -1560,6 +1560,11 @@ int ValidateModifiers(t_sched_modifier *modifier)
for (;modifier;modifier=modifier->next)
{
+ if (modifier->type != sched_while ||
+ modifier->type != sched_if)
+ {
+ continue;
+ }
vindex = CCTK_VarIndex(modifier->argument);
if (vindex < 0)
{