diff options
badwolf.c: Fix `struct Download` allocation
Found by Clang Static Analyzer (scan-build)
1 files changed, 1 insertions, 1 deletions
| -rw-r--r-- | badwolf.c | 2 |
@@ -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) { |