mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 02:44:46 +00:00
dbghelp: Fix erroneous string manipulation when said string is empty.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ebff1e8c9b
commit
e05bac0fd5
|
@ -2198,7 +2198,7 @@ static BOOL dwarf2_parse_line_numbers(const dwarf2_section_t* sections,
|
||||||
traverse.data += rellen + 1;
|
traverse.data += rellen + 1;
|
||||||
p = vector_add(&dirs, &ctx->pool);
|
p = vector_add(&dirs, &ctx->pool);
|
||||||
|
|
||||||
if (*rel == '/' || !compile_dir)
|
if (*rel == '/' || !compile_dir || !*compile_dir)
|
||||||
*p = rel;
|
*p = rel;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue