diff options
Diffstat (limited to 'platform/wifi_info_mac.mm')
-rw-r--r-- | platform/wifi_info_mac.mm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/wifi_info_mac.mm b/platform/wifi_info_mac.mm index 2b904c4d18..625fe0223d 100644 --- a/platform/wifi_info_mac.mm +++ b/platform/wifi_info_mac.mm @@ -69,11 +69,12 @@ static string AppendZeroIfNeeded(string const & macAddrPart) { utils::TokenizeIterator tokIt(rawBssid, ":"); apn.m_bssid = AppendZeroIfNeeded(*tokIt); - while (!(++tokIt).is_last()) + do { + ++tokIt; apn.m_bssid += "-"; apn.m_bssid += AppendZeroIfNeeded(*tokIt); - } + } while (!tokIt.is_last()); } m_accessPoints.push_back(apn); } |