summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/gui/skin_engine/skin_parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c
index 9495e34f5b..d99394eed0 100644
--- a/apps/gui/skin_engine/skin_parser.c
+++ b/apps/gui/skin_engine/skin_parser.c
@@ -1912,7 +1912,7 @@ static int buflib_move_callback(int handle, void* current, void* new)
1912 1912
1913static int load_skin_bmp(struct wps_data *wps_data, struct bitmap *bitmap, char* bmpdir) 1913static int load_skin_bmp(struct wps_data *wps_data, struct bitmap *bitmap, char* bmpdir)
1914{ 1914{
1915 static struct buflib_callbacks buflib_ops = {buflib_move_callback, NULL, NULL}; 1915
1916 (void)wps_data; /* only needed for remote targets */ 1916 (void)wps_data; /* only needed for remote targets */
1917 char img_path[MAX_PATH]; 1917 char img_path[MAX_PATH];
1918 1918
@@ -1929,6 +1929,7 @@ static int load_skin_bmp(struct wps_data *wps_data, struct bitmap *bitmap, char*
1929 close(fd); 1929 close(fd);
1930 return 1; 1930 return 1;
1931#else /* load the image */ 1931#else /* load the image */
1932 static struct buflib_callbacks buflib_ops = {buflib_move_callback, NULL, NULL};
1932 int handle; 1933 int handle;
1933 int bmpformat; 1934 int bmpformat;
1934 ssize_t buf_reqd; 1935 ssize_t buf_reqd;