Fix for Coverity CID #996825

This commit is contained in:
Klaas Freitag 2013-04-05 15:05:44 +02:00
parent 28aa1448c1
commit 5d5ee328b0

View file

@ -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;
}