summaryrefslogtreecommitdiffstats
path: root/dwflpp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dwflpp.cxx')
-rw-r--r--dwflpp.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/dwflpp.cxx b/dwflpp.cxx
index 531d413e..8fa31c6a 100644
--- a/dwflpp.cxx
+++ b/dwflpp.cxx
@@ -260,6 +260,10 @@ static int dwfl_report_offline_predicate (const char* modname, const char* filen
assert (offline_search_modname);
+ // elfutils sends us NULL filenames sometimes if it can't find dwarf
+ if (filename == NULL)
+ return 0;
+
if (dwflpp::name_has_wildcard (offline_search_modname)) {
int match_p = !fnmatch(offline_search_modname, modname, 0);
// In the wildcard case, we don't short-circuit (return -1) upon