mirror of
https://github.com/weechat/weechat.git
synced 2026-07-05 17:23:15 +02:00
core, plugins: check that string parameters are not NULL in search functions (issue #1872)
This commit is contained in:
@@ -86,6 +86,9 @@ exec_search_by_id (const char *id)
|
||||
char *error;
|
||||
long number;
|
||||
|
||||
if (!id)
|
||||
return NULL;
|
||||
|
||||
error = NULL;
|
||||
number = strtol (id, &error, 10);
|
||||
if (!error || error[0])
|
||||
|
||||
Reference in New Issue
Block a user