diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2003-01-10 11:21:15 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2003-01-10 11:21:15 +0000 |
commit | 08f8a9ef6c3dde79c57efbb17746e62b4631ec9f (patch) | |
tree | 64466db889a5851ff517d074aaab10b6c96dc6fe /libsieve/comparator.c | |
parent | a8bf34b37458e6c241a3556c38fdcf3a58ff57a0 (diff) | |
download | mailutils-08f8a9ef6c3dde79c57efbb17746e62b4631ec9f.tar.gz mailutils-08f8a9ef6c3dde79c57efbb17746e62b4631ec9f.tar.bz2 |
(comp_false): Fixed declaration.
(sieve_match_part_checker): shut compilator warnings about possibly
uninitialized variables.
Diffstat (limited to 'libsieve/comparator.c')
-rw-r--r-- | libsieve/comparator.c | 5 |
1 files changed, 3 insertions, 2 deletions
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) |