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:
Eric Pouech 2021-09-02 11:23:02 +02:00 committed by Alexandre Julliard
parent ebff1e8c9b
commit e05bac0fd5

View file

@ -2198,7 +2198,7 @@ static BOOL dwarf2_parse_line_numbers(const dwarf2_section_t* sections,
traverse.data += rellen + 1;
p = vector_add(&dirs, &ctx->pool);
if (*rel == '/' || !compile_dir)
if (*rel == '/' || !compile_dir || !*compile_dir)
*p = rel;
else
{