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;