diff options
-rw-r--r-- | src/print.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/print.c b/src/print.c index c4e1c2ffb6..ee89c435aa 100644 --- a/src/print.c +++ b/src/print.c @@ -159,6 +159,8 @@ const char *apk_error_str(int error) static void log_internal(FILE *dest, const char *prefix, const char *format, va_list va) { + if (dest != stdout) + fflush(stdout); if (prefix != NULL) fprintf(dest, "%s", prefix); vfprintf(dest, format, va); |