From ea1da6a43cf4f6bfcc23722a05baaae203a00db4 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 20 Dec 2011 17:11:39 +0300 Subject: Make compiler happy in several cases, remove warnings. --- src/kvstorage_server.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/kvstorage_server.c') 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; -- cgit v1.2.3