From 03234f1b5b732b0c757338be72ee26206f4e2aaf Mon Sep 17 00:00:00 2001 From: Stanislav Ilnytskyi Date: Wed, 31 Jan 2024 19:15:03 +0100 Subject: [PATCH] fix undefined index warning --- xtc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtc b/xtc index 9e5cb61..822400f 100755 --- a/xtc +++ b/xtc @@ -350,7 +350,7 @@ EOF; } if ($recordType === static::RECORD_ENTRY) { - $numberOfArguments = (int)$event[$this->functionIdx['number_of_arguments']]; + $numberOfArguments = (int)($event[$this->functionIdx['number_of_arguments']] ?? null); $events[$recordIndex] = [ 'pid' => 1, 'tid' => 1,