diff options
author | Karel Klic <kklic@redhat.com> | 2010-08-19 11:11:58 +0200 |
---|---|---|
committer | Karel Klic <kklic@redhat.com> | 2010-08-19 11:11:58 +0200 |
commit | d6f6a7a98b83de0d0aa3792fb187b66d9d15953d (patch) | |
tree | 3f88861519c32e3180d506507f1de3f8e34dfe45 /lib/plugins/Python.cpp | |
parent | 8b22e91dc2ac3e73d628486c91f83da5a0e5ec44 (diff) | |
parent | 96071530ea85635cf87a6bf650b7f5ddbd219f44 (diff) | |
download | abrt-d6f6a7a98b83de0d0aa3792fb187b66d9d15953d.tar.gz abrt-d6f6a7a98b83de0d0aa3792fb187b66d9d15953d.tar.xz abrt-d6f6a7a98b83de0d0aa3792fb187b66d9d15953d.zip |
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'lib/plugins/Python.cpp')
-rw-r--r-- | lib/plugins/Python.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/plugins/Python.cpp b/lib/plugins/Python.cpp index 5f2f6e17..b4d6cefc 100644 --- a/lib/plugins/Python.cpp +++ b/lib/plugins/Python.cpp @@ -27,9 +27,15 @@ using namespace std; string CAnalyzerPython::GetLocalUUID(const char *pDebugDumpDir) { CDebugDump dd; - dd.Open(pDebugDumpDir); + if (!dd.Open(pDebugDumpDir)) + { + VERB1 log(_("Unable to open debug dump '%s'"), pDebugDumpDir); + return string(""); + } + string bt; dd.LoadText(FILENAME_BACKTRACE, bt); + dd.Close(); const char *bt_str = bt.c_str(); const char *bt_end = strchrnul(bt_str, '\n'); |