shithub: scc

Download patch

ref: ad3e847a2aeabde0871b6da021276ae903c1faeb
parent: 3e5a6b61eba8e57abba4e74540672e521f6a0c21
author: Quentin Rameau <quinq@fifth.space>
date: Thu Jun 16 07:24:39 EDT 2016

[driver] merge input check with other argument checks

--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
@@ -446,11 +446,8 @@
 		usage();
 	} ARGEND
 
-	if (Eflag && (Sflag || kflag) || argc > 1 && cflag && outfile)
+	if (Eflag && (Sflag || kflag) || argc > 1 && cflag && outfile || !argc)
 		usage();
-
-	if (!argc)
-		die("scc: fatal error: no input file");
 
 	for (; *argv; ++argv)
 		build(*argv);