From: Timo Kokkonen Date: Mon, 7 Oct 2013 18:23:43 +0000 (+0300) Subject: Add missing initialization X-Git-Url: http://git.itanic.dy.fi/?a=commitdiff_plain;h=4936e24ec996e3c7f51668621e5b8dca60e5f9a3;p=log-plotter Add missing initialization We are passing on the variable to read_log_line() function and it needs to be initialized properly prior the first use. Signed-off-by: Timo Kokkonen --- diff --git a/main.c b/main.c index e017fad..4832e6a 100644 --- a/main.c +++ b/main.c @@ -72,7 +72,7 @@ static int read_data(int infd, int outfd) int epoll_fd; int ret; char buf[256]; - int offset; + int offset = 0; epoll_fd = epoll_create(1); if (epoll_fd < 0) {