Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commitfadd68541d5b6a2a251abd2e31e9c6197cd5d770 (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2020-12-09 12:17:54 +0100
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2020-12-09 12:18:41 +0100
Files51ac2fc861264302e97caaaaac3e9ed90344bb7e
goodwolf-fadd68541d5b6a2a251abd2e31e9c6197cd5d770.tar
goodwolf-fadd68541d5b6a2a251abd2e31e9c6197cd5d770.tar.gz
goodwolf-fadd68541d5b6a2a251abd2e31e9c6197cd5d770.zip
Parent13b89829812598a1d2612d8304491afbcf01cf55 (diff)
badwolf.c: Fix `struct Download` allocation
Found by Clang Static Analyzer (scan-build)
1 files changed, 1 insertions, 1 deletions
-rw-r--r--badwolf.c2
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)
{