Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

Commit

Permalink
download 0 size file
Browse files Browse the repository at this point in the history
  • Loading branch information
GangZhuo committed Mar 7, 2016
1 parent 8bb1279 commit 7da5984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -3549,7 +3549,7 @@ static inline int do_download(ShellContext *context,

fsize = pcs_get_download_filesize(context->pcs, remote_path);
ds.file_size = fsize;
if (fsize < 1) {
if (fsize < 0) {
if (pErrMsg) {
if (*pErrMsg) pcs_free(*pErrMsg);
(*pErrMsg) = pcs_utils_sprintf("Can't get the file size.\n");
Expand Down

0 comments on commit 7da5984

Please sign in to comment.