mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 22:36:38 +02:00
core: optimize xxx_valid() functions: return immediately if pointer is NULL
This commit is contained in:
@@ -256,7 +256,7 @@ plugin_script_valid (struct t_plugin_script *scripts,
|
||||
{
|
||||
struct t_plugin_script *ptr_script;
|
||||
|
||||
if (!script)
|
||||
if (!scripts || !script)
|
||||
return 0;
|
||||
|
||||
for (ptr_script = scripts; ptr_script;
|
||||
|
||||
Reference in New Issue
Block a user