aboutsummaryrefslogtreecommitdiffstats
path: root/src/kvstorage_server.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/kvstorage_server.c
parent9e611e033cfc40aab58805d8e485f892352750c6 (diff)
downloadrspamd-ea1da6a43cf4f6bfcc23722a05baaae203a00db4.tar.gz
rspamd-ea1da6a43cf4f6bfcc23722a05baaae203a00db4.zip
Make compiler happy in several cases, remove warnings.
Diffstat (limited to 'src/kvstorage_server.c')
-rw-r--r--src/kvstorage_server.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/kvstorage_server.c b/src/kvstorage_server.c
index 7cf53f1a0..c55c7c37e 100644
--- a/src/kvstorage_server.c
+++ b/src/kvstorage_server.c
@@ -222,7 +222,7 @@ static gboolean
parse_kvstorage_line (struct kvstorage_session *session, f_str_t *in)
{
gchar *p, *c, *end;
- gint state = 0, next_state;
+ gint state = 0, next_state = 0;
gboolean is_redis;
p = in->begin;
@@ -648,6 +648,7 @@ kvstorage_read_arglen (f_str_t *in, guint *len)
gchar *p = in->begin, *end = in->begin + in->len, *c;
gint state = 0;
+ c = p;
while (p < end) {
switch (state) {
case 0:
@@ -716,7 +717,7 @@ kvstorage_read_socket (f_str_t * in, void *arg)
struct kvstorage_session *session = (struct kvstorage_session *) arg;
struct kvstorage_worker_thread *thr;
gint r;
- guint arglen;
+ guint arglen = 0;
gchar outbuf[BUFSIZ];
gboolean is_redis;