aboutsummaryrefslogtreecommitdiffstats
path: root/src/statfile.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-05-31 17:17:13 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-05-31 17:17:13 +0400
commit0612e84b3cec508c3d62d38c4e2682c85cc808bb (patch)
treedb777e38f9c528127e195ad01da6a3088dc6da4a /src/statfile.c
parentae3eb4dfd787052bebc732c3e37b56f0800e1aa2 (diff)
downloadrspamd-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/statfile.c')
-rw-r--r--src/statfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/statfile.c b/src/statfile.c
index 005ea7c8a..08b271065 100644
--- a/src/statfile.c
+++ b/src/statfile.c
@@ -418,7 +418,7 @@ statfile_pool_create (statfile_pool_t * pool, char *filename, size_t size)
};
struct stat_file_block block = { 0, 0, 0 };
int fd;
- unsigned int buflen, nblocks;
+ unsigned int buflen = 0, nblocks;
char *buf = NULL;
if (statfile_pool_is_open (pool, filename) != NULL) {