From 810a677d32ac03d47b71c73ed9422e95dc7743ed Mon Sep 17 00:00:00 2001 From: Vlad Vissoultchev Date: Wed, 13 Apr 2016 10:48:15 +0300 Subject: tccpp.c: Guard against ppfp being NULL Missed these in e946eb2a4109e0de5f8514457f851897a4824c3e --- tcc.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'tcc.c') diff --git a/tcc.c b/tcc.c index dc75443..6adb6b8 100644 --- a/tcc.c +++ b/tcc.c @@ -303,13 +303,8 @@ int main(int argc, char **argv) tcc_error("could not write '%s'", s->outfile); } s->dffp = s->ppfp; - if (s->dflag == 'M') { -#ifndef TCC_TARGET_PE - s->ppfp = fopen("/dev/null", "w"); -#else - s->ppfp = fopen("nul", "w"); -#endif - } + if (s->dflag == 'M') + s->ppfp = NULL; } tcc_set_output_type(s, s->output_type); -- cgit v1.3.1