mirror of
https://github.com/weechat/weechat.git
synced 2026-07-02 07:46:38 +02:00
plugins: remove check of NULL pointers before calling weechat_string_free_split() (issue #865)
This commit is contained in:
@@ -68,10 +68,8 @@ exec_buffer_input_cb (const void *pointer, void *data,
|
||||
if (argv && argv_eol)
|
||||
exec_command_run (buffer, argc, argv, argv_eol, 0);
|
||||
|
||||
if (argv)
|
||||
weechat_string_free_split (argv);
|
||||
if (argv_eol)
|
||||
weechat_string_free_split (argv_eol);
|
||||
weechat_string_free_split (argv);
|
||||
weechat_string_free_split (argv_eol);
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
@@ -63,9 +63,7 @@ exec_config_change_command_default_options (const void *pointer, void *data,
|
||||
(void) data;
|
||||
(void) option;
|
||||
|
||||
if (exec_config_cmd_options)
|
||||
weechat_string_free_split (exec_config_cmd_options);
|
||||
|
||||
weechat_string_free_split (exec_config_cmd_options);
|
||||
exec_config_cmd_options = weechat_string_split (
|
||||
weechat_config_string (exec_config_command_default_options),
|
||||
" ",
|
||||
|
||||
Reference in New Issue
Block a user