diff options
| author | Vlad Vissoultchev <wqweto@gmail.com> | 2016-04-13 10:48:15 +0300 |
|---|---|---|
| committer | Vlad Vissoultchev <wqweto@gmail.com> | 2016-04-13 10:58:42 +0300 |
| commit | 810a677d32ac03d47b71c73ed9422e95dc7743ed (patch) | |
| tree | 308073e98ebc308e89c026ea2018e97d868f5320 /tcc.c | |
| parent | 6a49afb3ed134240f64bc219e2fb73ffb72ed326 (diff) | |
| download | tinycc-810a677d32ac03d47b71c73ed9422e95dc7743ed.tar.gz tinycc-810a677d32ac03d47b71c73ed9422e95dc7743ed.tar.bz2 | |
tccpp.c: Guard against ppfp being NULL
Missed these in e946eb2a4109e0de5f8514457f851897a4824c3e
Diffstat (limited to 'tcc.c')
| -rw-r--r-- | tcc.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -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); |
