From 08f8a9ef6c3dde79c57efbb17746e62b4631ec9f Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Fri, 10 Jan 2003 11:21:15 +0000 Subject: (comp_false): Fixed declaration. (sieve_match_part_checker): shut compilator warnings about possibly uninitialized variables. --- libsieve/comparator.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libsieve') diff --git a/libsieve/comparator.c b/libsieve/comparator.c index 6e654fdd6..c14870aca 100644 --- a/libsieve/comparator.c +++ b/libsieve/comparator.c @@ -197,7 +197,7 @@ _free_reglist (void *data) } static int -comp_false (void *pattern, void *text) +comp_false (const char *pattern, const char *text) { return 0; } @@ -210,7 +210,7 @@ sieve_match_part_checker (const char *name, list_t tags, list_t args) sieve_runtime_tag_t *comp = NULL; sieve_runtime_tag_t *tmp; sieve_comparator_t compfun = NULL; - char *compname; + char *compname = "false"; int matchtype; int err = 0; @@ -276,6 +276,7 @@ sieve_match_part_checker (const char *name, list_t tags, list_t args) return 1; } + matchtype = MU_SIEVE_MATCH_LAST; /* to not leave it undefined */ compfun = comp_false; val = sieve_value_get (args, 1); if (!val) -- cgit v1.2.1