[PATCH 12/13] dbghelp: Fix some erroneous string manipulation when said string is empty ""
Eric Pouech
eric.pouech at gmail.com
Thu Sep 2 04:23:02 CDT 2021
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
---
dlls/dbghelp/dwarf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c
index 0479f7c7401..6b4eb90c05a 100644
--- a/dlls/dbghelp/dwarf.c
+++ b/dlls/dbghelp/dwarf.c
@@ -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
{
More information about the wine-devel
mailing list