From 67b596199d5deb745842f26686bff96b40b63438 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 27 Oct 2009 10:08:38 +0100 Subject: [PATCH] input/ipaccess.c: clang says ret might be uninitialized and it appears to be right that for the "default" case ret will not be assigned and we return ret. --- openbsc/src/input/ipaccess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbsc/src/input/ipaccess.c b/openbsc/src/input/ipaccess.c index 1265982d2..85018648a 100644 --- a/openbsc/src/input/ipaccess.c +++ b/openbsc/src/input/ipaccess.c @@ -304,7 +304,7 @@ static int handle_ts1_read(struct bsc_fd *bfd) struct e1inp_sign_link *link; struct msgb *msg; struct ipaccess_head *hh; - int ret, error; + int ret = 0, error; msg = ipaccess_read_msg(bfd, &error); if (!msg) {