diff options
author | tg <tg@FreeBSD.org> | 1998-12-11 16:33:33 +0000 |
---|---|---|
committer | tg <tg@FreeBSD.org> | 1998-12-11 16:33:33 +0000 |
commit | 54bf21db879decc5bc47e06cf72f59fe04e65ffa (patch) | |
tree | 312398c9a0ebedb6b3e770e732b09e3e90156480 | |
parent | 1c6b03e53c02a8d0f574a74070746c0307d51c4c (diff) | |
download | FreeBSD-ports-54bf21db879decc5bc47e06cf72f59fe04e65ffa.zip FreeBSD-ports-54bf21db879decc5bc47e06cf72f59fe04e65ffa.tar.gz |
Don't dump core if argument is missing.
PR: 9048
-rw-r--r-- | devel/asl/files/patch-ac | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/devel/asl/files/patch-ac b/devel/asl/files/patch-ac new file mode 100644 index 0000000..404d3b9 --- /dev/null +++ b/devel/asl/files/patch-ac @@ -0,0 +1,16 @@ +--- as.c.orig Sat May 9 15:13:05 1998 ++++ as.c Fri Dec 11 17:14:47 1998 +@@ -2577,6 +2577,13 @@ + + ParamCount=argc-1; ParamStr=argv; + ++ if (ParamCount == 0) ++ BEGIN ++ fprintf(stderr, "Usage: %s [ option(s) ] file(s) [ option(s) ] file(s)\n", ++ argv[0]); ++ exit(0); ++ END ++ + if (First) + BEGIN + endian_init(); nls_init(); bpemu_init(); stdhandl_init(); |