Skip to content
Permalink
Browse files

size_t total_num is used uninitialized

  • Loading branch information...
Your Name
Your Name committed Apr 24, 2019
1 parent ce565ce commit 58a9c7c01c995510b2ad86a739cc55c909c2bb19
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/transport.c
@@ -281,7 +281,7 @@ int _libssh2_transport_read(LIBSSH2_SESSION * session)
unsigned char block[MAX_BLOCKSIZE];
int blocksize;
int encrypted = 1;
size_t total_num;
size_t total_num = 0;

/* default clear the bit */
session->socket_block_directions &= ~LIBSSH2_SESSION_BLOCK_INBOUND;

0 comments on commit 58a9c7c

Please sign in to comment.
You can’t perform that action at this time.