From f47c88065a3f2c05d583c39e9c1d540a413d6966 Mon Sep 17 00:00:00 2001 From: Arjen Lentz Date: Wed, 4 Sep 2024 20:27:08 +1000 Subject: [PATCH] Fixed typo in exec_ptrace.c --- src/exec_ptrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exec_ptrace.c b/src/exec_ptrace.c index 3d44b82e2a..a313ab530e 100644 --- a/src/exec_ptrace.c +++ b/src/exec_ptrace.c @@ -1386,7 +1386,7 @@ script_matches(const char *script, const char *execpath, int argc, /* Match interpreter. */ if (!pathname_matches(execpath, interp, true)) { /* It is possible for the interpreter to be a script too. */ - if (argv > 0 && strcmp(interp, argv[1]) == 0) { + if (argc > 0 && strcmp(interp, argv[1]) == 0) { /* Interpreter args must match for *this* interpreter. */ if (interp_args == NULL || (argc > 1 && strcmp(interp_args, argv[2]) == 0)) {