Thanks tylo for hints on the mailing list -- Regards ... Detlef
Unified · Split
| @@ -2089,7 +2089,7 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int *pargc, char ***pargv) · 2088 unmodified lines | ||
| 2089 | 2089 | s->gen_deps = 1; |
| 2090 | 2090 | /* usually, only "-MMD" is used */ |
| 2091 | 2091 | /* but the Linux Kernel uses "-MMD,depfile" */ |
| 2092 | − if (optarg) | |
| 2092 | + if ((optarg) && (*optarg != '\0')) | |
| 2093 | 2093 | tcc_set_str(&s->deps_outfile, optarg); |
| 2094 | 2094 | break; |
| 2095 | 2095 | case TCC_OPTION_MD: |