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.
This commit is contained in:
parent
960e81e5bd
commit
a97152b242
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue