aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-02-22 16:34:21 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-02-22 16:34:21 +0000
commit8780f8c449b1d8ef2e44622484d47707fb14a2f2 (patch)
treebf32be2b4913503705da13ed739ce4753413a90f /driver.c
parentc42037259b1cf03f7cd4abd0b9d687903aac29c0 (diff)
downloadfetchmail-8780f8c449b1d8ef2e44622484d47707fb14a2f2.tar.gz
fetchmail-8780f8c449b1d8ef2e44622484d47707fb14a2f2.tar.bz2
fetchmail-8780f8c449b1d8ef2e44622484d47707fb14a2f2.zip
Fix for core-dump bug.
svn path=/trunk/; revision=1666
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/driver.c b/driver.c
index 4acb2aeb..8c0657c2 100644
--- a/driver.c
+++ b/driver.c
@@ -2099,9 +2099,13 @@ const struct method *proto; /* protocol method table */
/* tell the UID code we've seen this */
if (ctl->newsaved)
- for (idp = ctl->newsaved; idp; idp = idp->next)
- if (idp->val.num == num)
- MARK_SEEN(idp->val.num);
+ {
+ struct idlist *sdp;
+
+ for (sdp = ctl->newsaved; sdp; sdp = sdp->next)
+ if (sdp->val.num == num)
+ MARK_SEEN(sdp->val.num);
+ }
/* maybe we delete this message now? */
if (retained)