summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
Diffstat (limited to 'amiga')
-rw-r--r--amiga/plugin_hack.c7
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;
}