break loop 50/49950/1
authorGukhwan Cho <gh78.cho@samsung.com>
Thu, 8 Oct 2015 06:38:41 +0000 (15:38 +0900)
committerGukhwan Cho <gh78.cho@samsung.com>
Thu, 22 Oct 2015 02:51:12 +0000 (11:51 +0900)
Change-Id: Iee553917ac795b69328b75b02b6dbfa0710aa386
Signed-off-by: Gukhwan Cho <gh78.cho@samsung.com>
server/ctsvc_number_utils.c

index a5a77cb..4abed71 100644 (file)
@@ -318,9 +318,12 @@ char* ctsvc_get_network_cc(bool reload)
        if (temp && 3 < strlen(temp))
                temp[3] = '\0';
        mcc = atoi(temp);
-       for (i=0;i<sizeof(__mcc_cc_list)/sizeof(ctsvc_mcc_cc_map);i++)
-               if (__mcc_cc_list[i].mcc == mcc)
+       for (i=0;i<sizeof(__mcc_cc_list)/sizeof(ctsvc_mcc_cc_map);i++) {
+               if (__mcc_cc_list[i].mcc == mcc) {
                        cc = __mcc_cc_list[i].cc;
+                       break;
+               }
+       }
 #endif
        return cc;
 }