From: Arran Cudbard-Bell Date: Sat, 19 Oct 2024 02:24:25 +0000 (-0600) Subject: Compiler is correct... if bio is nonnull, this should be do {} while () X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6d444274049bef32dae2d7036185fc9c4bdb7bc;p=thirdparty%2Ffreeradius-server.git Compiler is correct... if bio is nonnull, this should be do {} while () --- diff --git a/src/lib/bio/base.c b/src/lib/bio/base.c index f7c56f0eaae..09970e99542 100644 --- a/src/lib/bio/base.c +++ b/src/lib/bio/base.c @@ -267,13 +267,13 @@ void fr_bio_eof(fr_bio_t *bio) */ int fr_bio_write_flush(fr_bio_t *bio) { - while (bio) { + do { if (((fr_bio_common_t *) bio)->priv_cb.flush) { return ((fr_bio_common_t *) bio)->priv_cb.flush(bio); } bio = fr_bio_next(bio); - } + } while (bio); return 1; }