summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Kiryanov <rkir@google.com>2018-08-03 13:07:19 -0700
committerRoman Kiryanov <rkir@google.com>2018-08-03 13:10:46 -0700
commit6e604f70bc56b328f0c4af2fc5a1578938f4d1e5 (patch)
tree7cfac1c3a2e6f94fe4022348d9ba385c301b71f7
parent543816812430b72b898371c2e345438d0a08a7a7 (diff)
downloadandroid_device_generic_goldfish-6e604f70bc56b328f0c4af2fc5a1578938f4d1e5.tar.gz
android_device_generic_goldfish-6e604f70bc56b328f0c4af2fc5a1578938f4d1e5.tar.bz2
android_device_generic_goldfish-6e604f70bc56b328f0c4af2fc5a1578938f4d1e5.zip
Pass the size of the vatiable instead of a pointer to it
RIL_onRequestComplete(t, RIL_E_SUCCESS, &session_id, sizeof(&session_id)) passes size of a pointer to session_id instead of size of session_id. Bug: 112142343 Test: make -j50 Change-Id: I36db293b793ac569631e2407483326a5a004ebe0 Signed-off-by: Roman Kiryanov <rkir@google.com>
-rw-r--r--ril/reference-ril.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ril/reference-ril.c b/ril/reference-ril.c
index b1f6b37..c0db44d 100644
--- a/ril/reference-ril.c
+++ b/ril/reference-ril.c
@@ -1899,7 +1899,7 @@ static void requestSimOpenChannel(void *data, size_t datalen, RIL_Token t)
return;
}
- RIL_onRequestComplete(t, RIL_E_SUCCESS, &session_id, sizeof(&session_id));
+ RIL_onRequestComplete(t, RIL_E_SUCCESS, &session_id, sizeof(session_id));
at_response_free(p_response);
}