commit | a97152b2424482d034d95de7a74501d55f425ed9 | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <zecke@selfish.org> | Fri Jul 23 19:34:34 2010 +0800 |
committer | Holger Hans Peter Freyther <zecke@selfish.org> | Fri Jul 23 19:34:34 2010 +0800 |
tree | a7ff9aa7d432dcf10053515db1526103c95283ab | |
parent | 960e81e5bd099ed29dcd85ca4faba33e3b7d2629 [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.
diff --git a/openbsc/src/silent_call.c b/openbsc/src/silent_call.c index 8bd16d2..29ade00 100644 --- a/openbsc/src/silent_call.c +++ b/openbsc/src/silent_call.c
@@ -41,7 +41,7 @@ { struct gsm_subscriber_connection *conn = _conn; struct scall_signal_data sigdata; - int rc; + int rc = 0; if (hooknum != GSM_HOOK_RR_PAGING) return -EINVAL;