https://bugs.kde.org/show_bug.cgi?id=432215

--- Comment #8 from Mark Wielaard <m...@klomp.org> ---
+   if (VG_(getenv)("DEBUGINFOD_URLS") == NULL
+       || VG_(strcmp)("", VG_(getenv("DEBUGINFOD_URLS"))) == 0)
+      return NULL;
+
+   if ((path = ML_(find_executable)("debuginfod-find")) == NULL)
+      return NULL;

It would be nice to move this somewhere so that it only has to be checked ones.
Maybe something like:

static
const HChar* debuginfod_find_path (void)
{
   static const HChar *path = (const HChar*) -1;
   if (path == (const HChar*) -1) {
      if (VG_(getenv)("DEBUGINFOD_URLS") == NULL
          || VG_(strcmp)("", VG_(getenv("DEBUGINFOD_URLS"))) == 0)
         path = NULL;
      else
         path = ML_(find_executable)("debuginfod-find");
   }
   return path;
}

So you can check as

   if ((path = debuginfod_find_path()) == NULL)
      return NULL;

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to