diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-27 20:47:24 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-28 15:14:22 +0100 |
commit | c07cf691adb4740759e9fd128a2f6702c912d70f (patch) | |
tree | 91520d9be1270aae41d23ffeae1f69d3a31b10d2 /src/plugins/exec/exec-command.c | |
parent | c9ac4fef4b7aa054df72bddf667edea0608d39c6 (diff) | |
download | weechat-c07cf691adb4740759e9fd128a2f6702c912d70f.zip |
core, plugins: check that string parameters are not NULL in search functions (issue #1872)
Diffstat (limited to 'src/plugins/exec/exec-command.c')
-rw-r--r-- | src/plugins/exec/exec-command.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/exec/exec-command.c b/src/plugins/exec/exec-command.c index 7cfec192a..8dc0aa25d 100644 --- a/src/plugins/exec/exec-command.c +++ b/src/plugins/exec/exec-command.c @@ -148,6 +148,9 @@ exec_command_search_running_id (const char *id) { struct t_exec_cmd *ptr_exec_cmd; + if (!id) + return NULL; + ptr_exec_cmd = exec_search_by_id (id); if (!ptr_exec_cmd) { |