diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-09-29 23:15:18 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-09-29 23:15:18 +0100 |
commit | aea01d19789ffd6e256bffc1c7f714994a8170fb (patch) | |
tree | 7ccf91a8078f1e067e73c04756cfe23389adc53f /render/html.c | |
parent | 56465288983f3b3d9f97f97faccbcf673cc35ba5 (diff) | |
download | netsurf-aea01d19789ffd6e256bffc1c7f714994a8170fb.tar.gz netsurf-aea01d19789ffd6e256bffc1c7f714994a8170fb.tar.bz2 |
Fix to define variable at start of block, for GCC 2.95.2.
Diffstat (limited to 'render/html.c')
-rw-r--r-- | render/html.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/render/html.c b/render/html.c index a4725cad1..b6515106e 100644 --- a/render/html.c +++ b/render/html.c @@ -423,6 +423,7 @@ html_process_encoding_change(struct content *c, const char *encoding; const char *source_data; unsigned long source_size; + union content_msg_data msg_data; /* Retrieve new encoding */ encoding = dom_hubbub_parser_get_encoding(html->parser, @@ -433,8 +434,6 @@ html_process_encoding_change(struct content *c, html->encoding = talloc_strdup(c, encoding); if (html->encoding == NULL) { - union content_msg_data msg_data; - msg_data.error = messages_get("NoMemory"); content_broadcast(c, CONTENT_MSG_ERROR, msg_data); return false; @@ -458,8 +457,6 @@ html_process_encoding_change(struct content *c, talloc_free(html->encoding); html->encoding = talloc_strdup(c, "Windows-1252"); if (html->encoding == NULL) { - union content_msg_data msg_data; - msg_data.error = messages_get("NoMemory"); content_broadcast(c, CONTENT_MSG_ERROR, msg_data); return false; @@ -474,8 +471,6 @@ html_process_encoding_change(struct content *c, &html->document); if (html->parser == NULL) { - union content_msg_data msg_data; - /** @todo add a message callback function and pass the * parser errors back instead of everything being * OOM @@ -500,8 +495,6 @@ html_process_encoding_change(struct content *c, return true; } - union content_msg_data msg_data; - msg_data.error = messages_get("NoMemory"); content_broadcast(c, CONTENT_MSG_ERROR, msg_data); |