1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 13:56:37 +02:00

core, plugins: add missing parentheses when dereferencing a pointer with an array index

This commit is contained in:
Sébastien Helleu
2024-09-05 20:53:54 +02:00
parent 230c436dd4
commit 143f694fe2
25 changed files with 61 additions and 61 deletions
+3 -3
View File
@@ -123,7 +123,7 @@ script_action_run_list_input (struct t_gui_buffer *buffer,
ptr_script = weechat_hdata_get_list (hdata, "scripts");
while (ptr_script)
{
if (*output[0])
if ((*output)[0])
{
weechat_string_dyn_concat (output, ", ", -1);
}
@@ -152,7 +152,7 @@ script_action_run_list_input (struct t_gui_buffer *buffer,
}
}
if (!*output[0])
if (!(*output)[0])
{
weechat_string_dyn_concat (
output,
@@ -1257,7 +1257,7 @@ script_action_add (struct t_gui_buffer *buffer, const char *action)
return;
}
if (*script_actions[0])
if ((*script_actions)[0])
weechat_string_dyn_concat (script_actions, "\n", -1);
weechat_string_dyn_concat (