From: Arran Cudbard-Bell Date: Mon, 27 Jun 2022 20:42:44 +0000 (-0500) Subject: Fix legitimate bug found by clangd X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ab833159194369c5e79152c9b5bc74d7012c41e;p=thirdparty%2Ffreeradius-server.git Fix legitimate bug found by clangd --- diff --git a/src/lib/util/log.c b/src/lib/util/log.c index adbf501edd0..22ff0143313 100644 --- a/src/lib/util/log.c +++ b/src/lib/util/log.c @@ -185,7 +185,7 @@ void fr_log_fd_event(UNUSED fr_event_list_t *el, int fd, UNUSED int flags, void fr_sbuff_term_t const line_endings = FR_SBUFF_TERMS(L("\n"), L("\r")); if (log_info->lvl < fr_debug_lvl) { - while (read(fd, buffer, sizeof(buffer) > 0)); + while (read(fd, buffer, sizeof(buffer)) > 0); return; }