diff --git a/src/detection/terminalshell/terminalshell_windows.c b/src/detection/terminalshell/terminalshell_windows.c index 2ea0f0c746..b6cf8a9a4b 100644 --- a/src/detection/terminalshell/terminalshell_windows.c +++ b/src/detection/terminalshell/terminalshell_windows.c @@ -291,7 +291,7 @@ static bool detectDefaultTerminal(FFTerminalResult* result) static uint32_t getTerminalInfo(FFTerminalResult* result, uint32_t pid) { - uint32_t ppid; + uint32_t ppid = 0; bool hasGui; while (pid != 0 && getProcessInfo(pid, &ppid, &result->processName, &result->exe, &result->exeName, &result->exePath, &hasGui))