path: root/src/gprs_ms.cpp
diff options
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-03-04 18:24:50 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-03-04 18:26:43 +0100
commitfd263b0dfd0ec44216c607b96e167f1027e404c6 (patch)
treec4c00c3eb8674e145d2cb31e93fa2619bd2f4e82 /src/gprs_ms.cpp
parent99db40ad2d4bf0569fc460d90132a64724a83a6c (diff)
tbf: Fix copy and paste in the set_mode routine
This is the second attempt to fix what looks like a copy and paste issue. The code assigns m_current_cs_ul and then compares the _dl variant, then assigns m_current_cs_ul with a default value. It seems to indicate that _ul should be used. Fixes: Coverity: CID 1351733
Diffstat (limited to 'src/gprs_ms.cpp')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gprs_ms.cpp b/src/gprs_ms.cpp
index 78f03f84..4296fd33 100644
--- a/src/gprs_ms.cpp
+++ b/src/gprs_ms.cpp
@@ -237,7 +237,7 @@ void GprsMs::set_mode(GprsCodingScheme::Mode mode)
if (!m_current_cs_ul.isEgprs()) {
m_current_cs_ul = GprsCodingScheme::getEgprsByNum(
- if (!m_current_cs_dl.isValid())
+ if (!m_current_cs_ul.isValid())
m_current_cs_ul = GprsCodingScheme::MCS1;
if (!m_current_cs_dl.isEgprs()) {