From b001e5d4abddb3368c7e9c42f7bc04aa22a38a53 Mon Sep 17 00:00:00 2001 From: Alexandru Chirila Date: Wed, 18 Jan 2017 14:22:14 +0200 Subject: [PATCH] Ensure that the `err_code` variable is initialized before using. --- PIL/ImageFile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PIL/ImageFile.py b/PIL/ImageFile.py index 8f3ee524c..0c7a19194 100644 --- a/PIL/ImageFile.py +++ b/PIL/ImageFile.py @@ -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)