From e2e49bce138d29623435113ea2fd25d5b7a34b45 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 27 Jan 2021 01:23:58 +1100 Subject: [PATCH] [host] service: fix possible use of unitialized variable --- host/platform/Windows/src/service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/platform/Windows/src/service.c b/host/platform/Windows/src/service.c index 34cfee43..a6b328cf 100644 --- a/host/platform/Windows/src/service.c +++ b/host/platform/Windows/src/service.c @@ -645,7 +645,7 @@ VOID WINAPI SvcMain(DWORD dwArgc, LPTSTR *lpszArgv) ReportSvcStatus(SERVICE_RUNNING, NO_ERROR, 0); while(1) { - ULONGLONG launchTime; + ULONGLONG launchTime = 0ULL; DWORD interactiveSession = WTSGetActiveConsoleSessionId(); if (interactiveSession != 0 && interactiveSession != 0xFFFFFFFF)