mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 14:26:39 +02:00
Removed sizeof(char) and useless type casts from void* to another pointer type (patch from Leonid Evdokimov)
This commit is contained in:
@@ -99,8 +99,7 @@ plugin_api_mkdir_home (char *directory, int mode)
|
||||
|
||||
/* build directory, adding WeeChat home */
|
||||
dir_length = strlen (weechat_home) + strlen (directory) + 2;
|
||||
dir_name =
|
||||
(char *)malloc (dir_length * sizeof (char));
|
||||
dir_name = malloc (dir_length);
|
||||
if (!dir_name)
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user