mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-10 21:55:11 +01:00
Bail out if surf is NULL
This commit is contained in:
parent
4f076f72f2
commit
3983fbb7d2
@ -200,6 +200,9 @@ void *sdl_surface_to_png(SDL_Surface *surf, size_t *out_sz)
|
||||
png_colorp palette;
|
||||
struct png_write_user_struct out;
|
||||
|
||||
if (!surf)
|
||||
return NULL;
|
||||
|
||||
out.sz = 0;
|
||||
out.data = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user