]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Missing initialisation in winsecur.c.
authorSimon Tatham <anakin@pobox.com>
Fri, 3 Feb 2017 19:36:46 +0000 (19:36 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 3 Feb 2017 19:36:46 +0000 (19:36 +0000)
We might have returned true from getsids() by mistake, even if
something had gone wrong. Thanks again, clang.

windows/winsecur.c

index 440c66fff42ed999e48a619d50391d63d05569a3..b7060b3b0a5d2a681360aaff1cb0b5b2c2341031 100644 (file)
@@ -96,7 +96,7 @@ int getsids(char **error)
 {
     SID_IDENTIFIER_AUTHORITY world_auth = SECURITY_WORLD_SID_AUTHORITY;
     SID_IDENTIFIER_AUTHORITY nt_auth = SECURITY_NT_AUTHORITY;
-    int ret;
+    int ret = FALSE;
 
     *error = NULL;