1
1

fix stupid "use unallocated memory" code in sample

it confused valgrind and wasted 2 precious hours of my life
Этот коммит содержится в:
Aris Adamantiadis 2009-06-21 21:53:12 +02:00
родитель 4dafc25927
Коммит a3fa6f3099

Просмотреть файл

@ -284,7 +284,7 @@ void do_sftp(SSH_SESSION *session){
SFTP_FILE *to;
int len=1;
int i;
char data[8000];
char data[8000]={0};
if(!sftp_session){
fprintf(stderr, "sftp error initialising channel: %s\n",
ssh_get_error(session));