diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-09-06 21:03:36 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-09-06 21:03:36 +0000 |
commit | 8f451932d1be339fc5aaf2095efa0acb2b1de8c7 (patch) | |
tree | ac3d2e0ef03713afd7d92b9036e189967e1b033b /amiga/plugin_hack.c | |
parent | 0f40fbae49eba40f03fd99095d39ea23f9fa37c1 (diff) | |
download | netsurf-8f451932d1be339fc5aaf2095efa0acb2b1de8c7.tar.gz netsurf-8f451932d1be339fc5aaf2095efa0acb2b1de8c7.tar.bz2 |
Stop plugin_hack objects crashing when not embedded into a page
svn path=/trunk/netsurf/; revision=12763
Diffstat (limited to 'amiga/plugin_hack.c')
-rw-r--r-- | amiga/plugin_hack.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/amiga/plugin_hack.c b/amiga/plugin_hack.c index b37dac15b..7e6cbcb4e 100644 --- a/amiga/plugin_hack.c +++ b/amiga/plugin_hack.c @@ -181,8 +181,11 @@ void amiga_plugin_hack_open(struct content *c, struct browser_window *bw, { LOG(("amiga_plugin_hack_open %s", content__get_url(c))); - c->width = box->width; - c->height = box->height; + if(c && box) + { + c->width = box->width; + c->height = box->height; + } return; } |