commit | f97c661b113a50d6b0bdef9d7cf740a2cbacbb00 | [log] [tgz] |
---|---|---|
author | Andrew Molyneux <andrew@molyneuxfamily.co.uk> | Wed Dec 24 22:02:36 2014 +0000 |
committer | Andrew Molyneux <andrew@molyneuxfamily.co.uk> | Wed Dec 24 22:02:36 2014 +0000 |
tree | e980d1c8be13c614e5defd754f6c1b61f778d645 | |
parent | 73d4a30a5ba5c15c5bb0394a65e294afce2b3ba9 [diff] [blame] |
Removed unnecessary casts
diff --git a/lib/zip_source_win32w.c b/lib/zip_source_win32w.c index e5e8ceb..b9ad56e 100644 --- a/lib/zip_source_win32w.c +++ b/lib/zip_source_win32w.c
@@ -95,7 +95,7 @@ len = wcslen((const wchar_t *)ctx->fname) + 10; if (*temp == NULL) { - if ((*temp = (char *)malloc(sizeof(wchar_t) * len)) == NULL) { + if ((*temp = malloc(sizeof(wchar_t) * len)) == NULL) { zip_error_set(&ctx->error, ZIP_ER_MEMORY, 0); return INVALID_HANDLE_VALUE; }