mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-06-06 13:00:58 +03:00
examples: Avoid using uninitialized memory
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Norbert Pocs <norbertpocs0@gmail.com>
This commit is contained in:
parent
0bcd7d12d8
commit
3d0226cadc
@ -8,7 +8,7 @@
|
||||
int main(void) {
|
||||
ssh_session session;
|
||||
ssh_channel channel;
|
||||
char buffer[1024*1024];
|
||||
char buffer[1024 * 1024] = {0};
|
||||
int rc;
|
||||
uint64_t total=0;
|
||||
uint64_t lastshown=4096;
|
||||
|
Loading…
x
Reference in New Issue
Block a user