scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 0fed41f4804eb01cb3e9b2a532df0b4adc243261
parent 2a53cf364037e35fffa1a6950083ac55eb91c5e3
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 30 May 2018 20:24:07 +0100

[as] Fix parameter parsing

Empty command line is argc == 0 and no < 0.

Diffstat:
Mld/main.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ld/main.c b/ld/main.c @@ -250,7 +250,7 @@ main(int argc, char *argv[]) } } - if (argc < 0) + if (argc == 0) usage(); pass1(argc, argv);