fix detection of missing target. thanks to thomas.

svn path=/trunk/; revision=18234
This commit is contained in:
Brandon Turner 2005-10-03 00:51:24 +00:00
parent f04df80d72
commit b45fcd6e73

View file

@ -566,6 +566,7 @@ INT cmd_rmdir (LPTSTR cmd, LPTSTR param)
return 1;
}
dir[0] = 0;
/* check for options anywhere in command line */
for (i = 0; i < args; i++)
{
@ -592,7 +593,7 @@ INT cmd_rmdir (LPTSTR cmd, LPTSTR param)
}
}
if (!dir)
if (dir[0] == _T('\0'))
{
/* No folder to remove */
ConErrResPuts(STRING_ERROR_REQ_PARAM_MISSING);