From fadd68541d5b6a2a251abd2e31e9c6197cd5d770 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Wed, 9 Dec 2020 12:17:54 +0100 Subject: badwolf.c: Fix `struct Download` allocation Found by Clang Static Analyzer (scan-build) --- badwolf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/badwolf.c b/badwolf.c index 7394c00..977f214 100644 --- a/badwolf.c +++ b/badwolf.c @@ -463,7 +463,7 @@ web_contextCb_download_started(WebKitWebContext *web_context, { (void)web_context; struct Client *browser = (struct Client *)user_data; - struct Download *download = malloc(sizeof(struct Client)); + struct Download *download = malloc(sizeof(struct Download)); if(download != NULL) { -- cgit v1.3.1-23-gd82d