Scope reduce a variable.

This commit is contained in:
Michael Drake 2014-05-26 11:40:58 +01:00
parent 18fb6461f9
commit 6503757698
1 changed files with 1 additions and 1 deletions

View File

@ -285,12 +285,12 @@ bool ro_gui_throbber_icon_update(struct throbber *throbber)
bool ro_gui_throbber_icon_resize(struct throbber *throbber)
{
os_error *error;
if (throbber->window == NULL)
return false;
if (throbber->icon != -1) {
os_error *error;
error = xwimp_resize_icon(throbber->window, throbber->icon,
throbber->extent.x0, throbber->extent.y0,
throbber->extent.x1, throbber->extent.y1);