From bb7124325ef1851762ba709877a28057f361a36e Mon Sep 17 00:00:00 2001 From: wiredfool Date: Thu, 31 Aug 2017 08:52:29 -0700 Subject: [PATCH] Don't return null on empty string --- _imagingft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_imagingft.c b/_imagingft.c index 21188996d..7534e0bbb 100644 --- a/_imagingft.c +++ b/_imagingft.c @@ -585,7 +585,7 @@ font_render(FontObject* self, PyObject* args) glyph_info = NULL; count = text_layout(string, self, dir, features, &glyph_info, mask); if (count == 0) { - return NULL; + Py_RETURN_NONE; } im = (Imaging) id;