diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-01-14 20:24:34 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-01-14 20:24:34 +0000 |
commit | b97a22a39b816d26c733a2f4aa38afdbcbea42d6 (patch) | |
tree | d2c4d15b125b9f349df7fd2604a4c73d26025c96 /plugins/TrafficCounter/src/statistics.cpp | |
parent | 20603ba3e4e0a120870f18ddf2211011cb0b4549 (diff) |
TrafficCounter:
-Minor warnungs fixed
git-svn-id: http://svn.miranda-ng.org/main/trunk@11857 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TrafficCounter/src/statistics.cpp')
-rw-r--r-- | plugins/TrafficCounter/src/statistics.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/TrafficCounter/src/statistics.cpp b/plugins/TrafficCounter/src/statistics.cpp index 691adaae03..52c64c4e7f 100644 --- a/plugins/TrafficCounter/src/statistics.cpp +++ b/plugins/TrafficCounter/src/statistics.cpp @@ -564,7 +564,7 @@ DWORD Stat_GetStartIndex(BYTE AccNum, BYTE Interval, DWORD ItemNumber, SYSTEMTIM дата которой соответствует началу статистики указанного аккаунта. */
void Stat_SetAccShift(BYTE AccNum, BYTE EldestAccount)
{
- DWORD Left, Right, Probe; // Границы интервала для поиска (индексы статистики).
+ DWORD Left, Right, Probe = 0; // Границы интервала для поиска (индексы статистики).
SYSTEMTIME stReq = {0}, stProbe;
signed short int d = 1;
@@ -717,6 +717,8 @@ DWORD Stat_GetRecordsNumber(BYTE AccNum, BYTE Interval) if (ProtoList[AccNum].AllStatistics[i].Year != ProtoList[AccNum].AllStatistics[i+1].Year)
Result++;
break;
+ default:
+ return 0;
}
return Result;
|