summaryrefslogtreecommitdiffstats
path: root/src/network.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2011-04-14 17:33:40 -0500
committerDenis Kenzior <denkenz@gmail.com>2011-04-14 17:33:40 -0500
commitd6838a2095d2321a3793cdc0f60a0937eb3904f3 (patch)
treefa6f3b6e183973a4626069df44ebb08efc5c5df1 /src/network.c
parent7e21cb3b38c15ebf1a1ea6f05a132e906c22f773 (diff)
downloadofono-d6838a2095d2321a3793cdc0f60a0937eb3904f3.tar.bz2
network: One more trivial fix
total_length and record_length are the same in this context, but using total_length makes the code more readable
Diffstat (limited to 'src/network.c')
-rw-r--r--src/network.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network.c b/src/network.c
index b84a7185..1a1d55ba 100644
--- a/src/network.c
+++ b/src/network.c
@@ -1422,11 +1422,11 @@ static void sim_csp_read_cb(int ok, int total_length, int record,
* manual selection is to be enabled. The latter is also the
* default.
*/
- while (i < record_length &&
+ while (i < total_length &&
data[i] != SIM_CSP_ENTRY_VALUE_ADDED_SERVICES)
i += 2;
- if (i == record_length)
+ if (i == total_length)
return;
if ((data[i + 1] & 0x80) != 0) {