fixed 'uninitialized' compiler warnings.

This commit is contained in:
Guenter Knauf
2007-11-18 20:57:13 +00:00
parent 76e8e81402
commit 4600d108ed
2 changed files with 2 additions and 2 deletions

View File

@@ -818,7 +818,7 @@ static int
{
unsigned char *s;
unsigned long p_len, g_len;
int ret;
int ret = 0;
int rc;
if (key_state->state == libssh2_NB_state_idle) {

View File

@@ -960,7 +960,7 @@ libssh2_sftp_read(LIBSSH2_SFTP_HANDLE * handle, char *buffer,
LIBSSH2_SFTP *sftp = handle->sftp;
LIBSSH2_CHANNEL *channel = sftp->channel;
LIBSSH2_SESSION *session = channel->session;
unsigned long data_len, request_id;
unsigned long data_len, request_id = 0;
/* 25 = packet_len(4) + packet_type(1) + request_id(4) + handle_len(4) + offset(8) + length(4) */
ssize_t packet_len = handle->handle_len + 25;
unsigned char *packet, *s, *data;