History

libtcc: Avoid a regression for some usecases

Thanks tylo for hints on the mailing list -- Regards ... Detlef

Detlef Riekenberg committed 1 year ago

Commit f2b9fcf1 parent 59aecdb1 file · +1 −1Browse files

Unified · Split

libtcc.c+1−1
@@ -2089,7 +2089,7 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int *pargc, char ***pargv) · 2088 unmodified lines
20892089 s->gen_deps = 1;
20902090 /* usually, only "-MMD" is used */
20912091 /* but the Linux Kernel uses "-MMD,depfile" */
2092− if (optarg)
2092+ if ((optarg) && (*optarg != '\0'))
20932093 tcc_set_str(&s->deps_outfile, optarg);
20942094 break;
20952095 case TCC_OPTION_MD:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t