mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-16 09:12:44 +03:00
Reduce scope of a variable.
This commit is contained in:
parent
259a02a72a
commit
55b3163520
@ -85,7 +85,6 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap,
|
||||
struct thumbnail_save_area *save_area;
|
||||
osspriteop_area *sprite_area = NULL;
|
||||
osspriteop_header *sprite_header = NULL;
|
||||
_kernel_oserror *error;
|
||||
struct redraw_context ctx = {
|
||||
.interactive = false,
|
||||
.background_images = true,
|
||||
@ -137,6 +136,8 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap,
|
||||
/* if we changed to 8bpp then go back to 32bpp */
|
||||
if (thumbnail_32bpp_available != 1) {
|
||||
const uint8_t *pixbufp = bitmap_get_buffer(bitmap);
|
||||
_kernel_oserror *error;
|
||||
|
||||
if (!pixbufp || !bitmap->sprite_area) {
|
||||
free(sprite_area);
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user