From d6838a2095d2321a3793cdc0f60a0937eb3904f3 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 14 Apr 2011 17:33:40 -0500 Subject: [PATCH] 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 --- src/network.c | 4 ++-- 1 file 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) {