public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c64733a
)
check -m option
author
ceriel
<none@none>
Fri, 11 May 1990 13:11:12 +0000
(13:11 +0000)
committer
ceriel
<none@none>
Fri, 11 May 1990 13:11:12 +0000
(13:11 +0000)
util/ack/main.c
patch
|
blob
|
history
diff --git
a/util/ack/main.c
b/util/ack/main.c
index
5b8dc9e
..
5ec702b
100644
(file)
--- a/
util/ack/main.c
+++ b/
util/ack/main.c
@@
-162,6
+162,9
@@
vieuwargs(argc,argv) char **argv ; {
switch ( argp[1] ) {
case 'm': if ( machine ) fuerror("Two machines?") ;
machine= &argp[2];
+ if (*machine == '\0') {
+ fuerror("-m needs machine name");
+ }
eaten=1 ;
break ;
case 'o': if ( nextarg>=argc ) {