X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fwhatnowsbr.c;h=6541b42ed08b53ed6a27fac31b7e9db24ccf3367;hb=93f22073ff22b277206b0481c1f8f076aee1656d;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.