Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/c5aaf45d8eb7e303c26eaa1eb8474ddaabe42221
...commit
http://git.netsurf-browser.org/netsurf.git/commit/c5aaf45d8eb7e303c26eaa1eb8474ddaabe42221
...tree
http://git.netsurf-browser.org/netsurf.git/tree/c5aaf45d8eb7e303c26eaa1eb8474ddaabe42221
The branch, master has been updated
via c5aaf45d8eb7e303c26eaa1eb8474ddaabe42221 (commit)
via ca29c3b512aed1ab2c3ec98001fe1569cb47faf7 (commit)
from bf427e3b2acea8f05db9ad79299b1f7d22c54c33 (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/commit/?id=c5aaf45d8eb7e303c26eaa1eb8474ddaabe42221
commit c5aaf45d8eb7e303c26eaa1eb8474ddaabe42221
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>
Fetch: Squash use of uninitialised value in fetch_send_callback()
The `last_msg` member of `struct fetch` was not initialised on
creation of the structure.
diff --git a/content/fetch.c b/content/fetch.c
index 807e811..4cc7859 100644
--- a/content/fetch.c
+++ b/content/fetch.c
@@ -463,7 +463,7 @@ fetch_start(nsurl *url,
lwc_string *scheme;
bool match;
- fetch = malloc(sizeof (*fetch));
+ fetch = calloc(1, sizeof (*fetch));
if (fetch == NULL) {
return NSERROR_NOMEM;
}
@@ -487,13 +487,6 @@ fetch_start(nsurl *url,
fetch->url = nsurl_ref(url);
fetch->verifiable = verifiable;
fetch->p = p;
- fetch->http_code = 0;
- fetch->r_prev = NULL;
- fetch->r_next = NULL;
- fetch->referer = NULL;
- fetch->send_referer = false;
- fetch->fetcher_handle = NULL;
- fetch->fetch_is_active = false;
fetch->host = nsurl_get_component(url, NSURL_HOST);
if (referer != NULL) {
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=ca29c3b512aed1ab2c3ec98001fe1569cb47faf7
commit ca29c3b512aed1ab2c3ec98001fe1569cb47faf7
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>
Framebuffer: Make some log messages deep debug.
diff --git a/frontends/framebuffer/fbtk/event.c
b/frontends/framebuffer/fbtk/event.c
index 84c6c37..7a58091 100644
--- a/frontends/framebuffer/fbtk/event.c
+++ b/frontends/framebuffer/fbtk/event.c
@@ -84,7 +84,7 @@ fbtk_click(fbtk_widget_t *widget, nsfb_event_t *event)
x = fbtk_get_absx(clicked);
y = fbtk_get_absy(clicked);
- NSLOG(netsurf, INFO, "clicked %p at %d,%d", clicked, x, y);
+ NSLOG(netsurf, DEEPDEBUG, "clicked %p at %d,%d", clicked, x, y);
/* post the click */
fbtk_post_callback(clicked, FBTK_CBT_CLICK, event, cloc.x0 - x, cloc.y0
- y);
diff --git a/frontends/framebuffer/gui.c b/frontends/framebuffer/gui.c
index 8f59fef..8c8fb61 100644
--- a/frontends/framebuffer/gui.c
+++ b/frontends/framebuffer/gui.c
@@ -153,7 +153,7 @@ widget_scroll_y(struct gui_window *gw, int y, bool abs)
int content_width, content_height;
int height;
- NSLOG(netsurf, INFO, "window scroll");
+ NSLOG(netsurf, DEEPDEBUG, "window scroll");
if (abs) {
bwidget->pany = y - bwidget->scrolly;
} else {
@@ -237,7 +237,8 @@ fb_pan(fbtk_widget_t *widget,
height = fbtk_get_height(widget);
width = fbtk_get_width(widget);
- NSLOG(netsurf, INFO, "panning %d, %d", bwidget->panx, bwidget->pany);
+ NSLOG(netsurf, DEEPDEBUG, "panning %d, %d",
+ bwidget->panx, bwidget->pany);
x = fbtk_get_absx(widget);
y = fbtk_get_absy(widget);
@@ -665,7 +666,8 @@ fb_browser_window_click(fbtk_widget_t *widget,
fbtk_callback_info *cbi)
cbi->event->type != NSFB_EVENT_KEY_UP)
return 0;
- NSLOG(netsurf, INFO, "browser window clicked at %d,%d", cbi->x, cbi->y);
+ NSLOG(netsurf, DEEPDEBUG, "browser window clicked at %d,%d",
+ cbi->x, cbi->y);
switch (cbi->event->type) {
case NSFB_EVENT_KEY_DOWN:
-----------------------------------------------------------------------
Summary of changes:
content/fetch.c | 9 +--------
frontends/framebuffer/fbtk/event.c | 2 +-
frontends/framebuffer/gui.c | 8 +++++---
3 files changed, 7 insertions(+), 12 deletions(-)
diff --git a/content/fetch.c b/content/fetch.c
index 807e811..4cc7859 100644
--- a/content/fetch.c
+++ b/content/fetch.c
@@ -463,7 +463,7 @@ fetch_start(nsurl *url,
lwc_string *scheme;
bool match;
- fetch = malloc(sizeof (*fetch));
+ fetch = calloc(1, sizeof (*fetch));
if (fetch == NULL) {
return NSERROR_NOMEM;
}
@@ -487,13 +487,6 @@ fetch_start(nsurl *url,
fetch->url = nsurl_ref(url);
fetch->verifiable = verifiable;
fetch->p = p;
- fetch->http_code = 0;
- fetch->r_prev = NULL;
- fetch->r_next = NULL;
- fetch->referer = NULL;
- fetch->send_referer = false;
- fetch->fetcher_handle = NULL;
- fetch->fetch_is_active = false;
fetch->host = nsurl_get_component(url, NSURL_HOST);
if (referer != NULL) {
diff --git a/frontends/framebuffer/fbtk/event.c
b/frontends/framebuffer/fbtk/event.c
index 84c6c37..7a58091 100644
--- a/frontends/framebuffer/fbtk/event.c
+++ b/frontends/framebuffer/fbtk/event.c
@@ -84,7 +84,7 @@ fbtk_click(fbtk_widget_t *widget, nsfb_event_t *event)
x = fbtk_get_absx(clicked);
y = fbtk_get_absy(clicked);
- NSLOG(netsurf, INFO, "clicked %p at %d,%d", clicked, x, y);
+ NSLOG(netsurf, DEEPDEBUG, "clicked %p at %d,%d", clicked, x, y);
/* post the click */
fbtk_post_callback(clicked, FBTK_CBT_CLICK, event, cloc.x0 - x, cloc.y0
- y);
diff --git a/frontends/framebuffer/gui.c b/frontends/framebuffer/gui.c
index 8f59fef..8c8fb61 100644
--- a/frontends/framebuffer/gui.c
+++ b/frontends/framebuffer/gui.c
@@ -153,7 +153,7 @@ widget_scroll_y(struct gui_window *gw, int y, bool abs)
int content_width, content_height;
int height;
- NSLOG(netsurf, INFO, "window scroll");
+ NSLOG(netsurf, DEEPDEBUG, "window scroll");
if (abs) {
bwidget->pany = y - bwidget->scrolly;
} else {
@@ -237,7 +237,8 @@ fb_pan(fbtk_widget_t *widget,
height = fbtk_get_height(widget);
width = fbtk_get_width(widget);
- NSLOG(netsurf, INFO, "panning %d, %d", bwidget->panx, bwidget->pany);
+ NSLOG(netsurf, DEEPDEBUG, "panning %d, %d",
+ bwidget->panx, bwidget->pany);
x = fbtk_get_absx(widget);
y = fbtk_get_absy(widget);
@@ -665,7 +666,8 @@ fb_browser_window_click(fbtk_widget_t *widget,
fbtk_callback_info *cbi)
cbi->event->type != NSFB_EVENT_KEY_UP)
return 0;
- NSLOG(netsurf, INFO, "browser window clicked at %d,%d", cbi->x, cbi->y);
+ NSLOG(netsurf, DEEPDEBUG, "browser window clicked at %d,%d",
+ cbi->x, cbi->y);
switch (cbi->event->type) {
case NSFB_EVENT_KEY_DOWN:
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org