Skip to content

Commit cb6ad32

Browse files
committed
Add NULL check
1 parent 832fc4e commit cb6ad32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src_c/font.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ font_render(PyObject *self, PyObject *args, PyObject *kwds)
683683
return NULL;
684684
}
685685

686-
SDL_Surface *filled_with_outline_surf;
686+
SDL_Surface *filled_with_outline_surf = NULL;
687687

688688
if (outline_size > 0) {
689689
TTF_SetFontOutline(font, outline_size);

0 commit comments

Comments
 (0)