Author: jmb
Date: Tue Oct 5 14:24:54 2010
New Revision: 10866
URL:
http://source.netsurf-browser.org?rev=10866&view=rev
Log:
Squash warnings
Modified:
trunk/netsurf/framebuffer/gui.c
Modified: trunk/netsurf/framebuffer/gui.c
URL:
http://source.netsurf-browser.org/trunk/netsurf/framebuffer/gui.c?rev=108...
==============================================================================
--- trunk/netsurf/framebuffer/gui.c (original)
+++ trunk/netsurf/framebuffer/gui.c Tue Oct 5 14:24:54 2010
@@ -940,7 +940,7 @@
fbtk_widget_t *widget;
int xpos; /* The position of the next widget. */
- int xlhs; /* extent of the left hand side widgets */
+ int xlhs = 0; /* extent of the left hand side widgets */
int xdir = 1; /* the direction of movement + or - 1 */
const char *itmtype; /* type of the next item */
@@ -1117,13 +1117,16 @@
break;
default:
+ widget = NULL;
xdir = 0;
LOG(("Unknown element %c in toolbar layout", *itmtype));
break;
}
- xpos += (xdir * (fbtk_get_width(widget) + padding));
+ if (widget != NULL) {
+ xpos += (xdir * (fbtk_get_width(widget) + padding));
+ }
LOG(("xpos is %d",xpos));