diff --git a/src/scp.c b/src/scp.c index 1438d4e8..c782e9a2 100644 --- a/src/scp.c +++ b/src/scp.c @@ -776,7 +776,7 @@ libssh2_scp_recv(LIBSSH2_SESSION *session, const char *path, struct stat * sb) LIBSSH2_CHANNEL *ptr; /* scp_recv uses libssh2_struct_stat, so pass one if the caller gave us a struct to populate... */ - libssh2_struct_stat sb_intl; + libssh2_struct_stat sb_intl = {0}; libssh2_struct_stat *sb_ptr; sb_ptr = sb ? &sb_intl : NULL;