Fixed some svaces 50/169450/1
authorhyunuktak <hyunuk.tak@samsung.com>
Wed, 7 Feb 2018 02:17:27 +0000 (11:17 +0900)
committerhyunuktak <hyunuk.tak@samsung.com>
Wed, 7 Feb 2018 02:17:29 +0000 (11:17 +0900)
WGID : 307350, 307352

Change-Id: I517541c5c088f2a0f30ea71186fcf9d2df332d9e
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
packaging/stc-manager.spec
src/monitor/stc-default-connection.c

index 9e2c1af..d50d114 100644 (file)
@@ -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
index 9a43408..6128e02 100755 (executable)
@@ -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