diff options
| author | Michal Toman <mtoman@redhat.com> | 2010-08-18 11:18:39 +0200 |
|---|---|---|
| committer | Michal Toman <mtoman@redhat.com> | 2010-08-18 11:18:39 +0200 |
| commit | 4ef4bc1ba11d9c185db584ed97ce520a6306b462 (patch) | |
| tree | 5b37f6ca52fd5911b7e65157b4246cc99d7f3fab /lib/plugins/Kerneloops.cpp | |
| parent | e0b0da307a78b038045e2cb86934d60befd74339 (diff) | |
| download | abrt-4ef4bc1ba11d9c185db584ed97ce520a6306b462.tar.gz abrt-4ef4bc1ba11d9c185db584ed97ce520a6306b462.tar.xz abrt-4ef4bc1ba11d9c185db584ed97ce520a6306b462.zip | |
get rid of exceptions in CDebugDump class
Diffstat (limited to 'lib/plugins/Kerneloops.cpp')
| -rw-r--r-- | lib/plugins/Kerneloops.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/plugins/Kerneloops.cpp b/lib/plugins/Kerneloops.cpp index 1a2532e8..379197b2 100644 --- a/lib/plugins/Kerneloops.cpp +++ b/lib/plugins/Kerneloops.cpp @@ -118,12 +118,15 @@ std::string CAnalyzerKerneloops::GetLocalUUID(const char *pDebugDumpDir) VERB3 log("Getting local universal unique identification"); std::string oops; + CDebugDump dd; + if (!dd.Open(pDebugDumpDir)) { - CDebugDump dd; - dd.Open(pDebugDumpDir); - dd.LoadText(FILENAME_BACKTRACE, oops); + VERB1 log(_("Unable to open debug dump '%s'"), pDebugDumpDir); + return std::string(""); } + dd.LoadText(FILENAME_BACKTRACE, oops); + unsigned hash = hash_oops_str(oops.c_str()); hash &= 0x7FFFFFFF; |
