mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 03:49:20 +03:00
fix crash
This commit is contained in:
parent
1e1df5d94d
commit
45c98bad19
1 changed files with 2 additions and 1 deletions
|
@ -562,7 +562,8 @@ const char *hbf_error_string(hbf_transfer_t *transfer, Hbf_State state)
|
|||
int block_id = (cnt + transfer->start_id) % transfer->block_cnt;
|
||||
hbf_block_t *block = transfer->block_arr[block_id];
|
||||
|
||||
if( block->state != HBF_NOT_TRANSFERED && block->state != HBF_TRANSFER_SUCCESS ) {
|
||||
if( block->state != HBF_NOT_TRANSFERED && block->state != HBF_TRANSFER_SUCCESS
|
||||
&& block->http_error_msg != NULL) {
|
||||
return block->http_error_msg;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue