From: shingil.kang Date: Wed, 27 Apr 2016 09:24:32 +0000 (+0900) Subject: Fixed a bug where garbage characters follow pull/push error message X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a3a24b9b1e4bff38a69f61e11f937cf1fb96fdcf;p=sdk%2Ftools%2Fsdb.git Fixed a bug where garbage characters follow pull/push error message Change-Id: Ia90610c467b4a175500f5a264670d905b15fd412 Signed-off-by: shingil.kang --- diff --git a/src/file_sync_functions.c b/src/file_sync_functions.c index 858ce1a..e0da35f 100644 --- a/src/file_sync_functions.c +++ b/src/file_sync_functions.c @@ -322,7 +322,7 @@ int writeclose_remote(int fd, char* dstp, struct stat* st) { } if(msg.status.id != sync_okay) { - char buf[256]; + char buf[256] = {0, }; if(msg.status.id == sync_fail) { int len = ltohl(msg.status.msglen); if(len > 255) {