logo

badwolf

minimalist and privacy-oriented web browser based on WebKitGTK
commit: fadd68541d5b6a2a251abd2e31e9c6197cd5d770
parent 13b89829812598a1d2612d8304491afbcf01cf55
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed,  9 Dec 2020 12:17:54 +0100

badwolf.c: Fix `struct Download` allocation

Found by Clang Static Analyzer (scan-build)

Diffstat:

Mbadwolf.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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) {