summaryrefslogtreecommitdiff
path: root/addr2line.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-25 16:58:42 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-25 16:58:42 +0000
commitcd2afc30fdf10cd5da6b3814a8d07843ecdbc324 (patch)
tree6fbb3ab5a59323adf02bd5ada39af5ca92af9ab3 /addr2line.c
parentdcd1e5e5c298b35899c962985b4d195781c6397d (diff)
* addr2line.c (fill_lines): skip if path is NULL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'addr2line.c')
-rw-r--r--addr2line.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/addr2line.c b/addr2line.c
index 854dbc62ab..0123aff5f9 100644
--- a/addr2line.c
+++ b/addr2line.c
@@ -581,7 +581,7 @@ fill_lines(int num_traces, void **traces, char **syms, int check_debuglink,
for (i = offset; i < num_traces; i++) {
intptr_t d = (intptr_t)traces[i] - saddr;
const char *path = lines[i].path;
- if (path && strcmp(lines[offset].path, path) != 0)
+ if (!path || strcmp(lines[offset].path, path) != 0)
continue;
if (d <= 0 || d > (intptr_t)sym->st_size)
continue;