mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-30 18:32:44 +03:00
Fix for Coverity CID #996825
This commit is contained in:
parent
28aa1448c1
commit
5d5ee328b0
1 changed files with 4 additions and 1 deletions
|
@ -568,8 +568,11 @@ static int _csync_treewalk_visitor(void *obj, void *data) {
|
|||
cur = (csync_file_stat_t *) obj;
|
||||
ctx = (CSYNC *) data;
|
||||
|
||||
if (!ctx) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!(ctx && obj && data)) {
|
||||
if (!obj || !data) {
|
||||
ctx->error_code = CSYNC_ERR_PARAM;
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue