From e9cf7157200314f7da28d42f86bf3f04b197d56c Mon Sep 17 00:00:00 2001 From: hyunuktak Date: Wed, 7 Feb 2018 11:17:27 +0900 Subject: [PATCH] Fixed some svaces WGID : 307350, 307352 Change-Id: I517541c5c088f2a0f30ea71186fcf9d2df332d9e Signed-off-by: hyunuktak --- packaging/stc-manager.spec | 2 +- src/monitor/stc-default-connection.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packaging/stc-manager.spec b/packaging/stc-manager.spec index 9e2c1af..d50d114 100644 --- a/packaging/stc-manager.spec +++ b/packaging/stc-manager.spec @@ -1,6 +1,6 @@ Name: stc-manager Summary: STC(Smart Traffic Control) manager -Version: 0.0.46 +Version: 0.0.47 Release: 0 Group: Network & Connectivity/Other License: Apache-2.0 diff --git a/src/monitor/stc-default-connection.c b/src/monitor/stc-default-connection.c index 9a43408..6128e02 100755 --- a/src/monitor/stc-default-connection.c +++ b/src/monitor/stc-default-connection.c @@ -118,8 +118,10 @@ static void __telephony_get_modem_subscriber_id(GDBusConnection *connection, DEBUG_PARAMS(message); DEBUG_PARAM_TYPE(message); g_variant_get(message, "(&s&s)", &plmn, &msin); - plmn_len = strlen(plmn); - msin_len = strlen(msin); + if (plmn) + plmn_len = strlen(plmn); + if (msin) + msin_len = strlen(msin); if (msin_len + plmn_len >= IMSI_LENGTH) { STC_LOGD("Incorrect length of mobile subscriber identifier + net id"); //LCOV_EXCL_LINE -- 2.7.4