commit | 3e39086aba697ab70cc1d04f02983de903844c41 | [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 | 96670579ea978c9ff4fff859bb8d6c193bb5f5bf [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;