Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 3 insertions, 0 deletions
-rw-r--r--badwolf.c3
diff --git a/badwolf.c b/badwolf.c
index 84f4104..af2fe78 100644
--- a/badwolf.c
+++ b/badwolf.c
@@ -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;