aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2004-06-11 19:43:52 +0000
committerMatthias Andree <matthias.andree@gmx.de>2004-06-11 19:43:52 +0000
commit3180b5104a12515299d085cc2672a762eecd8184 (patch)
tree862e1ddb278ddb32feb91e1bec0460a66e55912e /pop3.c
parent5bbed890029e6b965a32317763ef33c9b3178550 (diff)
downloadfetchmail-3180b5104a12515299d085cc2672a762eecd8184.tar.gz
fetchmail-3180b5104a12515299d085cc2672a762eecd8184.tar.bz2
fetchmail-3180b5104a12515299d085cc2672a762eecd8184.zip
Make sure we don't return uninitialized data from pop3_getpartialsizes,
which can happen iff first > last. svn path=/trunk/; revision=3883
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pop3.c b/pop3.c
index 67f7ced1..ec8cbdf5 100644
--- a/pop3.c
+++ b/pop3.c
@@ -916,7 +916,7 @@ static int pop3_getrange(int sock,
static int pop3_getpartialsizes(int sock, int first, int last, int *sizes)
/* capture the size of message #first */
{
- int ok, i;
+ int ok = 0, i;
char buf [POPBUFSIZE+1];
unsigned int num, size;