Initialize sb_intl
@@ -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;
