From ba45073e04deba29e23e36c2a2b29a6c39b2b536 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Tue, 27 Feb 2024 19:20:13 +0800 Subject: [PATCH] CI: fix windows build --- src/detection/terminalshell/terminalshell_windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/terminalshell/terminalshell_windows.c b/src/detection/terminalshell/terminalshell_windows.c index ce165ea67..cce353c29 100644 --- a/src/detection/terminalshell/terminalshell_windows.c +++ b/src/detection/terminalshell/terminalshell_windows.c @@ -369,7 +369,6 @@ const FFShellResult* ffDetectShell(void) ffStrbufInit(&result.exePath); ffStrbufInit(&result.prettyName); ffStrbufInit(&result.version); - ffStrbufInit(&result.tty); result.pid = 0; result.ppid = 0; result.tty = -1; @@ -407,6 +406,7 @@ const FFTerminalResult* ffDetectTerminal(void) ffStrbufInit(&result.exePath); ffStrbufInit(&result.prettyName); ffStrbufInit(&result.version); + ffStrbufInit(&result.tty); result.pid = 0; result.ppid = 0;