1
1

scp: Make sure buffer is initialzed.

Found by Coverity.
Этот коммит содержится в:
Andreas Schneider 2012-10-08 22:51:35 +02:00
родитель 3d390cf6ff
Коммит 0bd2bbefa7

@ -517,7 +517,7 @@ int ssh_scp_read_string(ssh_scp scp, char *buffer, size_t len){
* @see ssh_scp_request_get_warning() * @see ssh_scp_request_get_warning()
*/ */
int ssh_scp_pull_request(ssh_scp scp){ int ssh_scp_pull_request(ssh_scp scp){
char buffer[4096]; char buffer[4096] = {0};
char *mode=NULL; char *mode=NULL;
char *p,*tmp; char *p,*tmp;
uint64_t size; uint64_t size;