fix null pointer check

svn path=/trunk/; revision=28092
This commit is contained in:
Christoph von Wittich 2007-08-02 01:45:02 +00:00
parent 48428871b5
commit e470bad721

View file

@ -135,8 +135,8 @@ INT cmd_start (LPTSTR First, LPTSTR Rest)
return 1;
}
param =cmd_alloc ( (_tcslen(RestWithoutArgs) + 1) * sizeof(TCHAR));
if (rest == NULL)
param = cmd_alloc ( (_tcslen(RestWithoutArgs) + 1) * sizeof(TCHAR));
if (param == NULL)
{
if(comspec != NULL)
cmd_free(comspec);