Ensure that the err_code variable is initialized before using.

This commit is contained in:
Alexandru Chirila 2017-01-18 14:22:14 +02:00
parent fbb92e99bb
commit b001e5d4ab

View File

@ -178,7 +178,7 @@ class ImageFile(Image.Image):
self.map = None
self.load_prepare()
err_code = 0
if not self.map:
# sort tiles in file order
self.tile.sort(key=_tilesort)