cmd: Avoid unreachable code (Coverity).
This commit is contained in:
parent
35cdb8bb22
commit
0b358703ca
|
@ -725,8 +725,6 @@ static WCHAR *WCMD_expand_envvar(WCHAR *start,
|
|||
WCMD_strsubstW(start, endOfVar + 1, startCopy, substrlength);
|
||||
}
|
||||
|
||||
return start;
|
||||
|
||||
/* search and replace manipulation */
|
||||
} else {
|
||||
WCHAR *equalspos = strstrW(colonpos, equalW);
|
||||
|
@ -786,9 +784,8 @@ static WCHAR *WCMD_expand_envvar(WCHAR *start,
|
|||
HeapFree(GetProcessHeap(), 0, s);
|
||||
HeapFree(GetProcessHeap(), 0, searchIn);
|
||||
HeapFree(GetProcessHeap(), 0, searchFor);
|
||||
return start;
|
||||
}
|
||||
return start+1;
|
||||
return start;
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
|
|
Loading…
Reference in New Issue