summaryrefslogtreecommitdiff
path: root/src/core/weechat.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-03-23 23:00:04 +0100
committerSebastien Helleu <flashcode@flashtux.org>2008-03-23 23:00:04 +0100
commit57323fa71effad75d78b36a45d5457b1bd782963 (patch)
tree50d7a5bacacebcdf59d5bf38dff84c83bf557d31 /src/core/weechat.c
parent14feea7ab84df3e367bc3732e8ba1470e1a3f5a7 (diff)
downloadweechat-57323fa71effad75d78b36a45d5457b1bd782963.zip
Removed sizeof(char) and useless type casts from void* to another pointer type (patch from Leonid Evdokimov)
Diffstat (limited to 'src/core/weechat.c')
-rw-r--r--src/core/weechat.c3
1 files changed, 1 insertions, 2 deletions
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,