Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/8ffc2e753b04a9e794e7a6302d57d590b311e41f
...commit
http://git.netsurf-browser.org/netsurf.git/commit/8ffc2e753b04a9e794e7a6302d57d590b311e41f
...tree
http://git.netsurf-browser.org/netsurf.git/tree/8ffc2e753b04a9e794e7a6302d57d590b311e41f
The branch, master has been updated
via 8ffc2e753b04a9e794e7a6302d57d590b311e41f (commit)
from 74e73a3b8b5ab3effd8e3d94c10463907d4c4ea9 (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=8ffc2e753b04a9e794e7a6302d57d590b311e41f
commit 8ffc2e753b04a9e794e7a6302d57d590b311e41f
Author: Chris Young <[email protected]>
Commit: Chris Young <[email protected]>
Avoid accessing NULL pointer
diff --git a/frontends/amiga/menu.c b/frontends/amiga/menu.c
index 88a875e..c354fef 100644
--- a/frontends/amiga/menu.c
+++ b/frontends/amiga/menu.c
@@ -923,7 +923,7 @@ struct Menu *ami_menu_layout(struct ami_menu_data **md, int
max)
TextLength(rp, md[i]->menulab,
strlen(md[i]->menulab)) -
icon_width - space_width;
- if((md[i]->menutype == NM_ITEM) &&
(md[i+1]->menutype == NM_SUB)) {
+ if((md[i]->menutype == NM_ITEM) && md[i+1] &&
(md[i+1]->menutype == NM_SUB)) {
left_posn -=
menu_glyph_width[NSA_GLYPH_SUBMENU];
submenuarrow = NewObject(NULL,
"sysiclass",
-----------------------------------------------------------------------
Summary of changes:
frontends/amiga/menu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frontends/amiga/menu.c b/frontends/amiga/menu.c
index 88a875e..c354fef 100644
--- a/frontends/amiga/menu.c
+++ b/frontends/amiga/menu.c
@@ -923,7 +923,7 @@ struct Menu *ami_menu_layout(struct ami_menu_data **md, int
max)
TextLength(rp, md[i]->menulab,
strlen(md[i]->menulab)) -
icon_width - space_width;
- if((md[i]->menutype == NM_ITEM) &&
(md[i+1]->menutype == NM_SUB)) {
+ if((md[i]->menutype == NM_ITEM) && md[i+1] &&
(md[i+1]->menutype == NM_SUB)) {
left_posn -=
menu_glyph_width[NSA_GLYPH_SUBMENU];
submenuarrow = NewObject(NULL,
"sysiclass",
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org