mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
[CSRSRV] Fix uninitialized variable warning detected by Clang. (#3619)
CORE-17545 subsystems/win32/csrsrv/api.c:63:9: warning: variable 'ServerDll' is used uninitialized whenever '||' condition is true [-Wsometimes-uninitialized] if ((ServerId >= CSR_SERVER_DLL_MAX) || ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ subsystems/win32/csrsrv/api.c:67:76: note: uninitialized use occurs here DPRINT1("CSRSS: %lx is invalid ServerDllIndex (%08x)\n", ServerId, ServerDll); ^~~~~~~~~
This commit is contained in:
parent
c5b87ac6ac
commit
abd4c818dc
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ CsrCallServerFromServer(IN PCSR_API_MESSAGE ReceiveMsg,
|
|||
IN OUT PCSR_API_MESSAGE ReplyMsg)
|
||||
{
|
||||
ULONG ServerId;
|
||||
PCSR_SERVER_DLL ServerDll;
|
||||
PCSR_SERVER_DLL ServerDll = NULL;
|
||||
ULONG ApiId;
|
||||
CSR_REPLY_CODE ReplyCode = CsrReplyImmediately;
|
||||
|
||||
|
|
Loading…
Reference in a new issue