Fix libssh connect bug cause of uninitialized port variable.

This commit is contained in:
Andreas Schneider 2008-11-05 15:50:09 +01:00
parent db9049d198
commit dd52ac837e

View file

@ -99,7 +99,7 @@ static int _sftp_connect(const char *uri) {
char *user = NULL;
char *passwd = NULL;
char *host = NULL;
unsigned int port;
unsigned int port = 0;
char *path = NULL;
unsigned char hash[MD5_DIGEST_LEN];
int rc = -1;