aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/silent_call.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-07-23 19:34:34 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-07-23 19:34:34 +0800
commita97152b2424482d034d95de7a74501d55f425ed9 (patch)
treea7ff9aa7d432dcf10053515db1526103c95283ab /openbsc/src/silent_call.c
parent960e81e5bd099ed29dcd85ca4faba33e3b7d2629 (diff)
clang: Initialize rc with zero.
In the error case we are assigning errno values but for the success case we have not assigned anything to the rc variable.
Diffstat (limited to 'openbsc/src/silent_call.c')
-rw-r--r--openbsc/src/silent_call.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/silent_call.c b/openbsc/src/silent_call.c
index 8bd16d2dc..29ade00cc 100644
--- a/openbsc/src/silent_call.c
+++ b/openbsc/src/silent_call.c
@@ -41,7 +41,7 @@ static int paging_cb_silent(unsigned int hooknum, unsigned int event,
{
struct gsm_subscriber_connection *conn = _conn;
struct scall_signal_data sigdata;
- int rc;
+ int rc = 0;
if (hooknum != GSM_HOOK_RR_PAGING)
return -EINVAL;