Skip to content

Commit e4bb980

Browse files
authored
Initialize local variable before use (#1964)
1 parent 73d9a69 commit e4bb980

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sessions/SSHSession.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ - (int)ssh_set_session
453453
- (void)ssh_login:(NSArray *)ids to:(struct sockaddr *)addr port:(int)port user:(const char *)user timeout:(int)timeout error:(NSError **)error
454454
{
455455
char *userauthlist = NULL;
456-
int auth_type;
456+
int auth_type = 0;
457457

458458
// Set supported auth_type from server
459459
do {

0 commit comments

Comments
 (0)