summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
Diffstat (limited to 'render')
-rw-r--r--render/html.c3
-rw-r--r--render/layout.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/render/html.c b/render/html.c
index 1e063e3a6..feecaf16b 100644
--- a/render/html.c
+++ b/render/html.c
@@ -154,6 +154,7 @@ bool html_process_data(struct content *c, char *data, unsigned int size)
{
unsigned long x;
binding_error err;
+ const char *encoding;
for (x = 0; x + CHUNK <= size; x += CHUNK) {
LOG(("Parsing %d bytes", CHUNK));
@@ -180,7 +181,7 @@ encoding_change:
LOG(("Changing encoding"));
/* Retrieve new encoding */
- const char *encoding = binding_get_encoding(
+ encoding = binding_get_encoding(
c->data.html.parser_binding,
&c->data.html.encoding_source);
diff --git a/render/layout.c b/render/layout.c
index f1056f4ab..71833a8c5 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -541,9 +541,9 @@ void layout_minmax_block(struct box *block, const struct font_functions *font_fu
int extra_fixed = 0;
float extra_frac = 0;
struct css_length size;
+ struct css_length gadget_size; /* Checkbox / radio buttons */
size.unit = CSS_UNIT_EM;
size.value = 10;
- struct css_length gadget_size; /* Checkbox / radio buttons */
gadget_size.unit = CSS_UNIT_EM;
gadget_size.value = 1;