aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-12-20 17:11:39 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-12-20 17:11:39 +0300
commitea1da6a43cf4f6bfcc23722a05baaae203a00db4 (patch)
tree1bbc911a153e4968d9e14f98f74f1de195c2bc49 /src/protocol.c
parent9e611e033cfc40aab58805d8e485f892352750c6 (diff)
downloadrspamd-ea1da6a43cf4f6bfcc23722a05baaae203a00db4.tar.gz
rspamd-ea1da6a43cf4f6bfcc23722a05baaae203a00db4.zip
Make compiler happy in several cases, remove warnings.
Diffstat (limited to 'src/protocol.c')
-rw-r--r--src/protocol.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/protocol.c b/src/protocol.c
index 70ba1bd83..51290cdf1 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -292,10 +292,11 @@ static gboolean
parse_http_command (struct worker_task *task, f_str_t * line)
{
guint8 *p, *end, *c;
- gint state = 0, next_state;
+ gint state = 0, next_state = 0;
gchar *cmd;
p = line->begin;
+ c = p;
end = p + line->len;
task->proto = RSPAMC_PROTO;