From 38962ca694f21563cb8a719d18b8c98dee2379f6 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Sat, 23 Sep 2017 14:01:07 +0200 Subject: [PATCH] csync_update: fix assert Amend 1dc44c0f62bb3f6e50156cd08c1a2a82d67c0d0d --- src/csync/csync_update.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/csync/csync_update.cpp b/src/csync/csync_update.cpp index ffe00d59a..c42eaa928 100644 --- a/src/csync/csync_update.cpp +++ b/src/csync/csync_update.cpp @@ -517,7 +517,7 @@ int csync_ftw(CSYNC *ctx, const char *uri, csync_walker_fn fn, } } else if(errno == ENOENT) { asp = asprintf( &ctx->error_string, "%s", uri); - ASSERT(asp); + ASSERT(asp >= 0); } // 403 Forbidden can be sent by the server if the file firewall is active. // A file or directory should be ignored and sync must continue. See #3490 -- 2.30.2