summaryrefslogtreecommitdiff
path: root/framebuffer/gui.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-07-26 22:37:53 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2014-07-26 22:37:53 +0100
commit8c57ad1e11b5b09d1c75087dcbe66fd220479407 (patch)
tree1b453d8dd18b788457db74631b1c6dcebf599f93 /framebuffer/gui.c
parent31def6a33878b1ca8f5340d30708c853cdafefa1 (diff)
downloadnetsurf-8c57ad1e11b5b09d1c75087dcbe66fd220479407.tar.gz
netsurf-8c57ad1e11b5b09d1c75087dcbe66fd220479407.tar.bz2
Fix up use of uninitialised variable.
Diffstat (limited to 'framebuffer/gui.c')
-rw-r--r--framebuffer/gui.c4
1 files 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));