changeset 30220:057c8193f4d3

Avoid excessive fflush in dbgprintf if we didn't even print anything. Patch by Steinar H. Gunderson [sgunderson bigfoot com]
author reimar
date Sun, 10 Jan 2010 15:37:14 +0000
parents f08c45c46433
children 47f48219b81f
files loader/win32.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/loader/win32.c	Sun Jan 10 15:31:45 2010 +0000
+++ b/loader/win32.c	Sun Jan 10 15:37:14 2010 +0000
@@ -208,8 +208,8 @@
 	vprintf(fmt, va);
 //	mp_dbg(MSGT_WIN32, MSGL_DBG3, fmt, va);
 	va_end(va);
+	fflush(stdout);
     }
-  fflush(stdout);
 }