summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2011-11-20 09:01:59 +0100
committerSylvain Munaut <tnt@246tNt.com>2011-11-20 09:01:59 +0100
commit9a5f3b8f787886302591641a729eefe99af08217 (patch)
treec3500bbd973dfb148f2935a6416f8e932a54b42a /src
parente45e699199c7f1f1fd79278af16d62efc76b097f (diff)
gsm/lapd_core: Make sure rc is initialize in lapd_rx_u
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src')
-rw-r--r--src/gsm/lapd_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gsm/lapd_core.c b/src/gsm/lapd_core.c
index 54adbcaa..c81c2fbf 100644
--- a/src/gsm/lapd_core.c
+++ b/src/gsm/lapd_core.c
@@ -782,7 +782,7 @@ static int lapd_rx_u(struct msgb *msg, struct lapd_msg_ctx *lctx)
{
struct lapd_datalink *dl = lctx->dl;
int length = lctx->length;
- int rc;
+ int rc = 0;
uint8_t prim, op;
switch (lctx->s_u) {