mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-14 19:36:38 +03:00
Ensure that the err_code
variable is initialized before using.
This commit is contained in:
parent
fbb92e99bb
commit
b001e5d4ab
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user