diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-03-23 23:00:04 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-03-23 23:00:04 +0100 |
commit | 57323fa71effad75d78b36a45d5457b1bd782963 (patch) | |
tree | 50d7a5bacacebcdf59d5bf38dff84c83bf557d31 /src/core/weechat.c | |
parent | 14feea7ab84df3e367bc3732e8ba1470e1a3f5a7 (diff) | |
download | weechat-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.c | 3 |
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, |