aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2009-10-27 10:08:38 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2009-10-27 10:08:38 +0100
commit67b596199d5deb745842f26686bff96b40b63438 (patch)
tree7fab57d2c502a210fa4fdbfecec13eab54646b5e /openbsc
parent423bfe915c2e2eb116d21b4c390e0bc13bab39b0 (diff)
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.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/input/ipaccess.c2
1 files changed, 1 insertions, 1 deletions
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) {