1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-23 01:22:37 +03:00

Initialize sb_intl #226

This commit is contained in:
Will Cosgrove
2018-04-27 12:22:33 -07:00
committed by GitHub
parent 83151a65f3
commit 7b07910b1c

View File

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