diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-05-31 17:17:13 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-05-31 17:17:13 +0400 |
commit | 0612e84b3cec508c3d62d38c4e2682c85cc808bb (patch) | |
tree | db777e38f9c528127e195ad01da6a3088dc6da4a /src/settings.c | |
parent | ae3eb4dfd787052bebc732c3e37b56f0800e1aa2 (diff) | |
download | rspamd-0612e84b3cec508c3d62d38c4e2682c85cc808bb.tar.gz rspamd-0612e84b3cec508c3d62d38c4e2682c85cc808bb.zip |
* Fix strict aliasing while compiling with optimization
* Fix tanhl detection for platforms that have not implementation of it
* Remove several compile warnings
Diffstat (limited to 'src/settings.c')
-rw-r--r-- | src/settings.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/settings.c b/src/settings.c index cd7167edd..dd4127c19 100644 --- a/src/settings.c +++ b/src/settings.c @@ -344,7 +344,7 @@ check_whitelist(struct worker_task *task, struct rspamd_settings *s) gboolean check_metric_settings (struct worker_task * task, struct metric * metric, double *score, double *rscore) { - struct rspamd_settings *us, *ds; + struct rspamd_settings *us = NULL, *ds = NULL; double *sc, *rs; *rscore = DEFAULT_REJECT_SCORE; @@ -393,7 +393,7 @@ check_metric_settings (struct worker_task * task, struct metric * metric, double gboolean check_factor_settings (struct worker_task * task, const char *symbol, double *factor) { - struct rspamd_settings *us, *ds; + struct rspamd_settings *us = NULL, *ds = NULL; double *fc; if (check_setting (task, &us, &ds)) { @@ -425,7 +425,7 @@ check_factor_settings (struct worker_task * task, const char *symbol, double *fa gboolean check_want_spam (struct worker_task * task) { - struct rspamd_settings *us, *ds; + struct rspamd_settings *us = NULL, *ds = NULL; if (check_setting (task, &us, &ds)) { if (us != NULL) { |