summaryrefslogtreecommitdiff
path: root/src/plugins/exec/exec.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2020-12-05 19:57:24 +0100
committerSébastien Helleu <flashcode@flashtux.org>2020-12-05 19:57:24 +0100
commit08ebc99dea511cccba7d810c529e5218e5a2534c (patch)
tree83039cb3d14a8aa3d1945f849c787e7b933e4d03 /src/plugins/exec/exec.c
parent03f4afe65e51db238674a9f74a62fc9e94065857 (diff)
downloadweechat-08ebc99dea511cccba7d810c529e5218e5a2534c.zip
Revert "exec: return NULL immediately if the task id is invalid"
This reverts commit dff1bf6f0f5521cf9e23e2b32a648512e13b6a72.
Diffstat (limited to 'src/plugins/exec/exec.c')
-rw-r--r--src/plugins/exec/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/exec/exec.c b/src/plugins/exec/exec.c
index 5daf7ec83..7a0da49f5 100644
--- a/src/plugins/exec/exec.c
+++ b/src/plugins/exec/exec.c
@@ -89,7 +89,7 @@ exec_search_by_id (const char *id)
error = NULL;
number = strtol (id, &error, 10);
if (!error || error[0])
- return NULL;
+ number = -1;
for (ptr_exec_cmd = exec_cmds; ptr_exec_cmd;
ptr_exec_cmd = ptr_exec_cmd->next_cmd)