summaryrefslogtreecommitdiffstats
path: root/Lib/rfc822.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-03-03 16:17:52 (GMT)
committerGuido van Rossum <guido@python.org>1998-03-03 16:17:52 (GMT)
commit9e43adbe7834f9b4143f7209edc0061c68455f56 (patch)
tree008a6d4839ac7b8dc9ec97779bbe20cad2ba0a3b /Lib/rfc822.py
parent9bdc436aaaca653c23e0fe301d9a61f6cd41ef79 (diff)
downloadcpython-9e43adbe7834f9b4143f7209edc0061c68455f56.zip
cpython-9e43adbe7834f9b4143f7209edc0061c68455f56.tar.gz
cpython-9e43adbe7834f9b4143f7209edc0061c68455f56.tar.bz2
Initialize adlist variable in getrouteaddr(), so an illegal address
doesn't cause a traceback.
Diffstat (limited to 'Lib/rfc822.py')
-rw-r--r--Lib/rfc822.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/rfc822.py b/Lib/rfc822.py
index 967a85e..8ddac67 100644
--- a/Lib/rfc822.py
+++ b/Lib/rfc822.py
@@ -450,6 +450,7 @@ class AddrlistClass:
expectroute = 0
self.pos = self.pos + 1
self.gotonext()
+ adlist = None
while self.pos < len(self.field):
if expectroute:
self.getdomain()