diff options
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, |