diff options
assert webkit_download before using it
1 files changed, 3 insertions, 0 deletions
| -rw-r--r-- | badwolf.c | 3 |
@@ -10,6 +10,7 @@ #include "keybindings.h" #include "uri.h" +#include <assert.h> #include <glib/gi18n.h> /* _() and other internationalization/localization helpers */ #include <libsoup/soup.h> /* soup* */ #include <locale.h> /* LC_* */ @@ -466,6 +467,8 @@ web_contextCb_download_started(WebKitWebContext *web_context, struct Client *browser = (struct Client *)user_data; struct Download *download = malloc(sizeof(struct Download)); + assert(webkit_download); + if(download != NULL) { download->window = browser->window; |