From 4936e24ec996e3c7f51668621e5b8dca60e5f9a3 Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Mon, 7 Oct 2013 21:23:43 +0300 Subject: [PATCH] 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 --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.45.0