diff options
Diffstat (limited to 'sieve/sieve.c')
-rw-r--r-- | sieve/sieve.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sieve/sieve.c b/sieve/sieve.c index a87b26157..32c044fa7 100644 --- a/sieve/sieve.c +++ b/sieve/sieve.c @@ -495,8 +495,13 @@ main (int argc, char *argv[]) mu_sieve_set_logger (mach, _sieve_action_log); if (expression_option) - rc = mu_sieve_compile_buffer (mach, script, strlen (script), - "stdin", 1); + { + struct mu_locus_point pt; + pt.mu_file = "stdin"; + pt.mu_line = 1; + pt.mu_col = 0; + rc = mu_sieve_compile_buffer (mach, script, strlen (script), &pt); + } else rc = mu_sieve_compile (mach, script); if (rc) |