From 6c3e88e60f2c7d2bff3aa1967afcc59f27626c48 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sat, 21 Sep 2013 17:24:59 -0400 Subject: Ensure that output generated while reading makefiles is synced. --- output.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'output.h') diff --git a/output.h b/output.h index 1f0e2d7..5fef436 100644 --- a/output.h +++ b/output.h @@ -24,7 +24,7 @@ struct output extern struct output *output_context; extern unsigned int stdio_traced; -#define OUTPUT_SET(_new) do{ if ((_new)->syncout) output_context = (_new); }while(0) +#define OUTPUT_SET(_new) do{ output_context = (_new)->syncout ? (_new) : NULL; }while(0) #define OUTPUT_UNSET() do{ output_context = NULL; }while(0) #define OUTPUT_TRACED() do{ stdio_traced = 1; }while(0) -- cgit v1.2.3