From: Olivier Goffart Date: Sat, 23 Sep 2017 12:01:07 +0000 (+0200) Subject: csync_update: fix assert X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~701^2~51 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=38962ca694f21563cb8a719d18b8c98dee2379f6;p=nextcloud-desktop.git csync_update: fix assert Amend 1dc44c0f62bb3f6e50156cd08c1a2a82d67c0d0d --- 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