]> sourceware.org Git - systemtap.git/commitdiff
PR3498, cont'd
authorFrank Ch. Eigler <fche@elastic.org>
Thu, 9 Jul 2009 17:39:03 +0000 (13:39 -0400)
committerFrank Ch. Eigler <fche@elastic.org>
Thu, 9 Jul 2009 17:40:14 +0000 (13:40 -0400)
* dwflpp.cxx (dwfl_report_offline_predicate): Reject NULL filenames.

dwflpp.cxx

index 531d413e1648d4ec1f2c4520b45f50fdbd8ae082..8fa31c6ac518b33f96def5fd722499e7c723fd7b 100644 (file)
@@ -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 
This page took 0.032095 seconds and 5 git commands to generate.