diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-12-20 17:11:39 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-12-20 17:11:39 +0300 |
commit | ea1da6a43cf4f6bfcc23722a05baaae203a00db4 (patch) | |
tree | 1bbc911a153e4968d9e14f98f74f1de195c2bc49 /lib | |
parent | 9e611e033cfc40aab58805d8e485f892352750c6 (diff) | |
download | rspamd-ea1da6a43cf4f6bfcc23722a05baaae203a00db4.tar.gz rspamd-ea1da6a43cf4f6bfcc23722a05baaae203a00db4.zip |
Make compiler happy in several cases, remove warnings.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/client/librspamdclient.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/client/librspamdclient.c b/lib/client/librspamdclient.c index 55a9b13dc..dad2a3388 100644 --- a/lib/client/librspamdclient.c +++ b/lib/client/librspamdclient.c @@ -323,7 +323,7 @@ static gboolean parse_rspamd_first_line (struct rspamd_connection *conn, guint len, GError **err) { gchar *b = conn->in_buf->str + sizeof("RSPAMD/") - 1, *p, *c; - guint remain = len - sizeof("RSPAMD/") + 1, state = 0, next_state; + guint remain = len - sizeof("RSPAMD/") + 1, state = 0, next_state = 0; gdouble dver; p = b; @@ -401,8 +401,8 @@ static gboolean parse_rspamd_metric_line (struct rspamd_connection *conn, guint len, GError **err) { gchar *b = conn->in_buf->str + sizeof("Metric:") - 1, *p, *c, *err_str; - guint remain = len - sizeof("Metric:") + 1, state = 0, next_state; - struct rspamd_metric *new; + guint remain = len - sizeof("Metric:") + 1, state = 0, next_state = 0; + struct rspamd_metric *new = NULL; p = b; @@ -543,8 +543,8 @@ static gboolean parse_rspamd_symbol_line (struct rspamd_connection *conn, guint len, GError **err) { gchar *b = conn->in_buf->str + sizeof("Symbol:") - 1, *p, *c, *err_str, *sym; - guint remain = len - sizeof("Symbol:") + 1, state = 0, next_state, l; - struct rspamd_symbol *new; + guint remain = len - sizeof("Symbol:") + 1, state = 0, next_state = 0, l; + struct rspamd_symbol *new = NULL; p = b; while (g_ascii_isspace (*p)) { @@ -684,7 +684,7 @@ static gboolean parse_rspamd_action_line (struct rspamd_connection *conn, guint len, GError **err) { gchar *b = conn->in_buf->str + sizeof("Action:") - 1, *p, *c, *sym; - guint remain = len - sizeof("Action:") + 1, state = 0, next_state; + guint remain = len - sizeof("Action:") + 1, state = 0, next_state = 0; p = b; c = b; @@ -752,7 +752,7 @@ static gboolean parse_rspamd_header_line (struct rspamd_connection *conn, guint len, GError **err) { gchar *b = conn->in_buf->str, *p, *c, *hname = NULL, *hvalue = NULL; - guint remain = len, state = 0, next_state; + guint remain = len, state = 0, next_state = 0; p = b; c = b; |