]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
runner.pm: fix perl warning when running tests
authorDaniel Stenberg <daniel@haxx.se>
Mon, 18 Dec 2023 13:19:22 +0000 (14:19 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 18 Dec 2023 13:49:41 +0000 (14:49 +0100)
    Use of uninitialized value $runner::gdbthis in numeric eq (==) at runner.pm

Follow-up from 3dcf301752a09d9

Closes #12549

tests/runner.pm

index 1ee912fc7fc377034f06f5cf0d6a89f2067376d2..c0fb40cb3db9e688f5c2bc4b5e2acbc35b8e8000 100644 (file)
@@ -115,7 +115,7 @@ our $DBGCURL=$CURL; #"../src/.libs/curl";  # alternative for debugging
 our $valgrind_logfile="--log-file";  # the option name for valgrind >=3
 our $valgrind_tool="--tool=memcheck";
 our $gdb = checktestcmd("gdb");
-our $gdbthis;      # run test case with gdb debugger
+our $gdbthis = 0;  # run test case with debugger (gdb or lldb)
 our $gdbxwin;      # use windowed gdb when using gdb
 
 # torture test variables