From 57323fa71effad75d78b36a45d5457b1bd782963 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sun, 23 Mar 2008 23:00:04 +0100 Subject: Removed sizeof(char) and useless type casts from void* to another pointer type (patch from Leonid Evdokimov) --- src/core/weechat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/core/weechat.c') diff --git a/src/core/weechat.c b/src/core/weechat.c index 3f192968d..92cd724b8 100644 --- a/src/core/weechat.c +++ b/src/core/weechat.c @@ -357,8 +357,7 @@ weechat_create_home_dirs () weechat_shutdown (EXIT_FAILURE, 0); } dir_length = strlen (ptr_home) + 10; - weechat_home = - (char *)malloc (dir_length * sizeof (char)); + weechat_home = malloc (dir_length); if (!weechat_home) { string_iconv_fprintf (stderr, -- cgit v1.2.3