wcmd: Only execute non-empty commands.

This commit is contained in:
Juan Lang 2009-08-12 18:15:37 -07:00 committed by Alexandre Julliard
parent e8846b7c78
commit 9c7ded0973
1 changed files with 1 additions and 1 deletions

View File

@ -1061,7 +1061,7 @@ void WCMD_part_execute(CMD_LIST **cmdList, WCHAR *firstcmd, WCHAR *variable,
/* FIXME: Only if previous call worked for && or failed for || */
if ((*cmdList)->prevDelim == CMD_ONFAILURE ||
(*cmdList)->prevDelim != CMD_ONSUCCESS) {
if (processThese) {
if (processThese && (*cmdList)->command) {
WCMD_execute ((*cmdList)->command, (*cmdList)->redirects, variable,
value, cmdList);
}