aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/imap/MCIMAPSession.cc
diff options
context:
space:
mode:
authorGravatar Hoà V. DINH <dinh.viet.hoa@gmail.com>2013-09-09 13:22:40 -0700
committerGravatar Hoà V. DINH <dinh.viet.hoa@gmail.com>2013-09-09 13:22:40 -0700
commitc32bea6c4371284cc748f6e67c4b9444412f9a40 (patch)
treeb9ecbebf5ed2bba79cab93330ef40c46a94b9607 /src/core/imap/MCIMAPSession.cc
parent63c71b915c681507d84c18e06cfdcd51f3818eb0 (diff)
parent1e0bbe335d39e909651e5692449ff297518d6e7c (diff)
Merge pull request #368 from yuklai/master_unusedVariables
Remove unused varilables.
Diffstat (limited to 'src/core/imap/MCIMAPSession.cc')
-rwxr-xr-xsrc/core/imap/MCIMAPSession.cc13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/core/imap/MCIMAPSession.cc b/src/core/imap/MCIMAPSession.cc
index 31bbbc62..4d1905a9 100755
--- a/src/core/imap/MCIMAPSession.cc
+++ b/src/core/imap/MCIMAPSession.cc
@@ -214,17 +214,12 @@ static int compareValuesUnsignedLong(void * value1, void * value2, void * contex
static struct mailimap_set * setFromArray(Array * array)
{
- unsigned int currentIndex;
- unsigned int currentFirst;
- unsigned int currentValue;
- unsigned int lastValue;
+ unsigned int currentIndex = 0;
+ unsigned int currentFirst = 0;
+ unsigned int currentValue = 0;
+ unsigned int lastValue = 0;
struct mailimap_set * imap_set;
- currentFirst = 0;
- currentValue = 0;
- lastValue = 0;
- currentIndex = 0;
-
array = array->sortedArray(compareValuesUnsignedLong, NULL);
imap_set = mailimap_set_new_empty();