move code to the correct position to handle all cases in 'if'

svn path=/trunk/; revision=32084
This commit is contained in:
Christoph von Wittich 2008-02-02 10:52:29 +00:00
parent 9b8be30ee9
commit 696d5b4b7c

View file

@ -181,6 +181,12 @@ INT cmd_if (LPTSTR cmd, LPTSTR param)
x_flag ^= X_EXEC;
pp += p1len;
if ( x_flag )
{
x_flag |= X_EMPTY;
}
}
while (_istspace (*pp)) /* skip spaces */
pp++;
@ -198,12 +204,6 @@ INT cmd_if (LPTSTR cmd, LPTSTR param)
}
}
if ( x_flag )
{
x_flag |= X_EMPTY;
}
}
if (x_flag & X_EMPTY)
{
while (_istspace (*pp)) /* Then skip spaces */