summaryrefslogtreecommitdiff
path: root/src/vimrun.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-08-22 15:19:18 +0200
committerBram Moolenaar <Bram@vim.org>2020-08-22 15:19:18 +0200
commit51b6eb47b3c41b01a5559b099e65354c8897093e (patch)
treecb476aa6fad106ae1b859a7b136b57506b857e4f /src/vimrun.c
parentd70840ed68296c1144d743e6335003c81c558c24 (diff)
downloadvim-git-51b6eb47b3c41b01a5559b099e65354c8897093e.tar.gz
patch 8.2.1507: using malloc() directlyv8.2.1507
Problem: Using malloc() directly. Solution: Use ALLOC_ONE(). Remove superfluous typecast. (Hussam al-Homsi, closes #6768)
Diffstat (limited to 'src/vimrun.c')
-rw-r--r--src/vimrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vimrun.c b/src/vimrun.c
index 26c4aa4c6..9a4c076d6 100644
--- a/src/vimrun.c
+++ b/src/vimrun.c
@@ -77,7 +77,7 @@ main(void)
if (cmdlen >= 2 && p[0] == L'"' && p[cmdlen - 1] == L'"')
{
cmdlen += 3;
- cmd = (wchar_t *)malloc(cmdlen * sizeof(wchar_t));
+ cmd = malloc(cmdlen * sizeof(wchar_t));
if (cmd == NULL)
{
perror("vimrun malloc(): ");