Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/aea01d19789ffd6e256bf...
...commit
http://git.netsurf-browser.org/netsurf.git/commit/aea01d19789ffd6e256bffc...
...tree
http://git.netsurf-browser.org/netsurf.git/tree/aea01d19789ffd6e256bffc1c...
The branch, master has been updated
via aea01d19789ffd6e256bffc1c7f714994a8170fb (commit)
from 56465288983f3b3d9f97f97faccbcf673cc35ba5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commitdiff/aea01d19789ffd6e256...
commit aea01d19789ffd6e256bffc1c7f714994a8170fb
Author: Michael Drake <tlsa(a)netsurf-browser.org>
Commit: Michael Drake <tlsa(a)netsurf-browser.org>
Fix to define variable at start of block, for GCC 2.95.2.
diff --git a/render/html.c b/render/html.c
index a4725ca..b651510 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);
-----------------------------------------------------------------------
Summary of changes:
render/html.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/render/html.c b/render/html.c
index a4725ca..b651510 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);
--
NetSurf Browser