From 8c57ad1e11b5b09d1c75087dcbe66fd220479407 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 26 Jul 2014 22:37:53 +0100 Subject: Fix up use of uninitialised variable. --- framebuffer/gui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framebuffer/gui.c b/framebuffer/gui.c index 5590a66e9..4069df2c2 100644 --- a/framebuffer/gui.c +++ b/framebuffer/gui.c @@ -1660,9 +1660,8 @@ resize_normal_browser_window(struct gui_window *gw, int furniture_width) { bool resized; int width, height; + int statusbar_width; int toolbar_height = fbtk_get_height(gw->toolbar); - int statusbar_width = nsoption_int(toolbar_status_size) * - width / 10000; /* Resize the main window widget */ resized = fbtk_set_pos_and_size(gw->window, 0, 0, 0, 0); @@ -1671,6 +1670,7 @@ resize_normal_browser_window(struct gui_window *gw, int furniture_width) width = fbtk_get_width(gw->window); height = fbtk_get_height(gw->window); + statusbar_width = nsoption_int(toolbar_status_size) * width / 10000; resize_toolbar(gw, toolbar_height, 2, nsoption_charp(fb_toolbar_layout)); -- cgit v1.2.3