summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorZdenek Prikryl <zprikryl@redhat.com>2009-03-04 12:25:49 +0100
committerZdenek Prikryl <zprikryl@redhat.com>2009-03-04 12:25:49 +0100
commit60150bac2c6ecc10a1d761bdecef696566d9ef43 (patch)
tree319d72f54e442b69c65c9428222a01a060b129f7 /lib
parent22470dc8f257cf67e77981ded39f28e48b9f863c (diff)
downloadabrt-60150bac2c6ecc10a1d761bdecef696566d9ef43.tar.gz
abrt-60150bac2c6ecc10a1d761bdecef696566d9ef43.tar.xz
abrt-60150bac2c6ecc10a1d761bdecef696566d9ef43.zip
FILENAME_CMDLINE and FILENAME_RELEASE are optional
Diffstat (limited to 'lib')
-rw-r--r--lib/MiddleWare/MiddleWare.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/MiddleWare/MiddleWare.cpp b/lib/MiddleWare/MiddleWare.cpp
index 0d7fdf6b..4dcf664c 100644
--- a/lib/MiddleWare/MiddleWare.cpp
+++ b/lib/MiddleWare/MiddleWare.cpp
@@ -108,9 +108,15 @@ void CMiddleWare::DebugDump2Report(const std::string& pDebugDumpDir, crash_repor
dd.LoadText(FILENAME_KERNEL, pCrashReport.m_sKernel);
dd.LoadText(FILENAME_PACKAGE, pCrashReport.m_sPackage);
dd.LoadText(FILENAME_EXECUTABLE, pCrashReport.m_sExecutable);
- dd.LoadText(FILENAME_CMDLINE, pCrashReport.m_sCmdLine);
- dd.LoadText(FILENAME_RELEASE, pCrashReport.m_sRelease);
+ if (dd.Exist(FILENAME_CMDLINE))
+ {
+ dd.LoadText(FILENAME_CMDLINE, pCrashReport.m_sCmdLine);
+ }
+ if (dd.Exist(FILENAME_RELEASE))
+ {
+ dd.LoadText(FILENAME_RELEASE, pCrashReport.m_sRelease);
+ }
if (dd.Exist(FILENAME_TEXTDATA1))
{
dd.LoadText(FILENAME_TEXTDATA1, pCrashReport.m_sTextData1);