From e4bb980e1caa6cc15dad65d20c4953e9bcac4540 Mon Sep 17 00:00:00 2001 From: Zero King Date: Tue, 12 Mar 2024 05:25:11 +0800 Subject: [PATCH] Initialize local variable before use (#1964) --- Sessions/SSHSession.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sessions/SSHSession.m b/Sessions/SSHSession.m index 06489e476..c59e2ea8c 100644 --- a/Sessions/SSHSession.m +++ b/Sessions/SSHSession.m @@ -453,7 +453,7 @@ - (int)ssh_set_session - (void)ssh_login:(NSArray *)ids to:(struct sockaddr *)addr port:(int)port user:(const char *)user timeout:(int)timeout error:(NSError **)error { char *userauthlist = NULL; - int auth_type; + int auth_type = 0; // Set supported auth_type from server do {