diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-04-26 15:35:36 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-04-26 15:35:36 +0100 |
commit | 2cb33b0c334f0b389b8cbbf26a2a3f1af3bccd6d (patch) | |
tree | b7b82ed487c033d39ddc8bafdcc0edb25f744f5f /content/handlers/javascript/duktape/Window.bnd | |
parent | b577de7c5bbba6c2f9a0b4ede3f814ea3023ded6 (diff) | |
download | netsurf-2cb33b0c334f0b389b8cbbf26a2a3f1af3bccd6d.tar.gz netsurf-2cb33b0c334f0b389b8cbbf26a2a3f1af3bccd6d.tar.bz2 |
dukky: Various checks for win being NULL
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'content/handlers/javascript/duktape/Window.bnd')
-rw-r--r-- | content/handlers/javascript/duktape/Window.bnd | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/content/handlers/javascript/duktape/Window.bnd b/content/handlers/javascript/duktape/Window.bnd index 175f4acb9..2c26f1d70 100644 --- a/content/handlers/javascript/duktape/Window.bnd +++ b/content/handlers/javascript/duktape/Window.bnd @@ -277,6 +277,9 @@ static duk_ret_t dukky_window_closedown_thread(duk_context *ctx) init Window(struct browser_window *win, struct html_content *htmlc) %{ + /* It makes no sense if win or htmlc are NULL */ + assert(win != NULL); + assert(htmlc != NULL); /* element window */ priv->win = win; priv->htmlc = htmlc; |