summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2015-04-15 09:51:08 +0200
committerFlorian Festi <ffesti@redhat.com>2015-04-15 09:54:29 +0200
commit363c015da5cbf315df267dc53580290984039804 (patch)
treeb4d9b5ebb706cd51b66fccc8aa0767b5d075cba9 /tools
parent1bd14464b9c6206602d1553fd24db7385e64ef55 (diff)
downloadrpm-363c015da5cbf315df267dc53580290984039804.tar.gz
Make sure references to go sources in debuginfo packages go to the installed path and not the source file in the build environment.
- Resolves: rhbz#1184221
Diffstat (limited to 'tools')
-rw-r--r--tools/debugedit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/debugedit.c b/tools/debugedit.c
index 0f85885e3..cf89312fa 100644
--- a/tools/debugedit.c
+++ b/tools/debugedit.c
@@ -480,7 +480,7 @@ edit_dwarf2_line (DSO *dso, uint32_t off, char *comp_dir, int phase)
unsigned char *endcu, *endprol;
unsigned char opcode_base;
uint32_t value, dirt_cnt;
- size_t comp_dir_len = strlen (comp_dir);
+ size_t comp_dir_len = !comp_dir ? 0 : strlen (comp_dir);
size_t abs_file_cnt = 0, abs_dir_cnt = 0;
if (phase != 0)
@@ -950,7 +950,7 @@ edit_attributes (DSO *dso, unsigned char *ptr, struct abbrev_tag *t, int phase)
}
}
- if (found_list_offs && comp_dir)
+ if (found_list_offs)
edit_dwarf2_line (dso, list_offs, comp_dir, phase);
free (comp_dir);