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:
@@ -776,7 +776,7 @@ libssh2_scp_recv(LIBSSH2_SESSION *session, const char *path, struct stat * sb)
|
|||||||
LIBSSH2_CHANNEL *ptr;
|
LIBSSH2_CHANNEL *ptr;
|
||||||
|
|
||||||
/* scp_recv uses libssh2_struct_stat, so pass one if the caller gave us a struct to populate... */
|
/* 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;
|
libssh2_struct_stat *sb_ptr;
|
||||||
sb_ptr = sb ? &sb_intl : NULL;
|
sb_ptr = sb ? &sb_intl : NULL;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user