summaryrefslogtreecommitdiff
path: root/libsieve/runtime.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2002-11-15 14:42:14 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2002-11-15 14:42:14 +0000
commitcb9ca95a83ec4331ac34a614672eb5fab50f22e0 (patch)
treed32c7d619592bffbade2dc772f0a023c189b306c /libsieve/runtime.c
parent3b03b4a1c979b0aa8f6f9fae555ff2085da5588b (diff)
downloadmailutils-cb9ca95a83ec4331ac34a614672eb5fab50f22e0.tar.gz
mailutils-cb9ca95a83ec4331ac34a614672eb5fab50f22e0.tar.bz2
(instr_run): Do not run the handler when in disassemble mode.
Diffstat (limited to 'libsieve/runtime.c')
-rw-r--r--libsieve/runtime.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libsieve/runtime.c b/libsieve/runtime.c
index 616ce9917..993e02957 100644
--- a/libsieve/runtime.c
+++ b/libsieve/runtime.c
@@ -37,7 +37,7 @@ instr_run (sieve_machine_t mach)
sieve_handler_t han = SIEVE_ARG (mach, 0, handler);
list_t arg_list = SIEVE_ARG (mach, 1, list);
list_t tag_list = SIEVE_ARG (mach, 2, list);
- int rc;
+ int rc = 0;
if (INSTR_DEBUG (mach))
{
@@ -48,7 +48,8 @@ instr_run (sieve_machine_t mach)
sieve_debug (mach, "\n");
}
- rc = han (mach, arg_list, tag_list);
+ if (!INSTR_DISASS(mach))
+ rc = han (mach, arg_list, tag_list);
SIEVE_ADJUST(mach, 4);
return rc;
}

Return to:

Send suggestions and report system problems to the System administrator.