Commit 0b358703 authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

cmd: Avoid unreachable code (Coverity).

parent 35cdb8bb
......@@ -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;
}
/*****************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment