Skip to content

Commit 7e1ac5e

Browse files
committed
Terminal (Windows): code cleanup
1 parent 55c72a8 commit 7e1ac5e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/detection/terminalshell/terminalshell_windows.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,11 @@ static uint32_t getTerminalInfo(FFTerminalResult* result, uint32_t pid)
298298
{
299299
if(!hasGui)
300300
{
301-
//We are nested shell
301+
//We are in nested shell
302302
ffStrbufClear(&result->processName);
303303
ffStrbufClear(&result->prettyName);
304304
ffStrbufClear(&result->exe);
305+
ffStrbufClear(&result->exePath);
305306
result->exeName = "";
306307
pid = ppid;
307308
continue;
@@ -320,6 +321,7 @@ static uint32_t getTerminalInfo(FFTerminalResult* result, uint32_t pid)
320321
ffStrbufClear(&result->processName);
321322
ffStrbufClear(&result->prettyName);
322323
ffStrbufClear(&result->exe);
324+
ffStrbufClear(&result->exePath);
323325
result->exeName = "";
324326
return 0;
325327
}

0 commit comments

Comments
 (0)