X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fwhatnowsbr.c;h=6541b42ed08b53ed6a27fac31b7e9db24ccf3367;hb=2ead8819603a21a03ee51440dc5617c5df1ed8da;hp=723d40878785c38703c9bf5f789f0f5bfe4d181d;hpb=5dd6771b28c257af405d7248639ed0e3bcdce38b;p=mmh diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 723d408..6541b42 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -409,6 +409,11 @@ WhatNow (int argc, char **argv) break; } + if (*(argp+1) == (char *)0) { + advise((char *)0, "attach command requires file argument(s)."); + break; + } + /* * Build a command line that causes the user's shell to list the file name * arguments. This handles and wildcard expansion, tilde expansion, etc.