cc/lex: do not crash on -I without arg
This commit is contained in:
parent
d41f67c2b9
commit
0b212ed505
1 changed files with 2 additions and 1 deletions
|
@ -80,7 +80,8 @@ main(int argc, char *argv[])
|
|||
|
||||
case 'I':
|
||||
p = ARGF();
|
||||
setinclude(p);
|
||||
if(p)
|
||||
setinclude(p);
|
||||
break;
|
||||
} ARGEND
|
||||
if(argc < 1 && outfile == 0) {
|
||||
|
|
Loading…
Reference in a new issue