Message ID | 20170929112622.11686-2-phil@nwl.cc |
---|---|
State | Accepted |
Delegated to: | Pablo Neira |
Headers | show |
Series | Follow-up on nft_print() enhancement | expand |
diff --git a/src/main.c b/src/main.c index 079a05b80e511..6d2422ffeccf9 100644 --- a/src/main.c +++ b/src/main.c @@ -403,6 +403,7 @@ int nft_gmp_print(struct output_ctx *octx, const char *fmt, ...) va_start(arg, fmt); ret = gmp_vfprintf(octx->output_fp, fmt, arg); va_end(arg); + fflush(octx->output_fp); return ret; }
This adds a missing call to fflush() to nft_gmp_print() just like in nft_print(). This is strictly not necessary since usually nft_gmp_print() is followed by a call to nft_print() but better not rely upon this assumption. Signed-off-by: Phil Sutter <phil@nwl.cc> --- src/main.c | 1 + 1 file changed, 1 insertion(+)