git: 9front

Download patch

ref: 6880fe5944cc9b4d45b83bdf243c26268a2ade2c
parent: 0f0a69743ba8457cd6177519b43928b0a2d3af68
author: ftrvxmtrx <ftrvxmtrx@gmail.com>
date: Sat Feb 2 11:54:09 EST 2013

cc/lex: do not crash on -I without arg

--- a/sys/src/cmd/cc/lex.c
+++ b/sys/src/cmd/cc/lex.c
@@ -80,7 +80,8 @@
 
 	case 'I':
 		p = ARGF();
-		setinclude(p);
+		if(p)
+			setinclude(p);
 		break;
 	} ARGEND
 	if(argc < 1 && outfile == 0) {
--