mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 14:02:52 +07:00
Check return value from strtok(), may be NULL
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -36,6 +36,9 @@ static void pidfile_callback(void *UNUSED(arg), int fd, int UNUSED(events))
|
||||
continue;
|
||||
|
||||
basename = strtok(ev->name, ".");
|
||||
if (!basename)
|
||||
continue;
|
||||
|
||||
svc = svc_find_by_nameid(basename, 1);
|
||||
if (!svc)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user