summaryrefslogtreecommitdiffstats
path: root/src/Daemon
diff options
context:
space:
mode:
authorZdenek Prikryl <zprikryl@redhat.com>2009-09-11 11:13:58 +0200
committerZdenek Prikryl <zprikryl@redhat.com>2009-09-11 11:13:58 +0200
commitd8404b53cd5c9fcc00b9c6d6510aa925c0919deb (patch)
tree393888f8ce1924326c9c76ab0b271b077ce28104 /src/Daemon
parent0fe21be04f937667c01730af89125577c96cfb12 (diff)
downloadabrt-d8404b53cd5c9fcc00b9c6d6510aa925c0919deb.tar.gz
abrt-d8404b53cd5c9fcc00b9c6d6510aa925c0919deb.tar.xz
abrt-d8404b53cd5c9fcc00b9c6d6510aa925c0919deb.zip
Fixed geting results from reporters
Diffstat (limited to 'src/Daemon')
-rw-r--r--src/Daemon/MiddleWare.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Daemon/MiddleWare.cpp b/src/Daemon/MiddleWare.cpp
index e3b6869f..d18f6ab8 100644
--- a/src/Daemon/MiddleWare.cpp
+++ b/src/Daemon/MiddleWare.cpp
@@ -353,14 +353,13 @@ report_status_t Report(const map_crash_report_t& pCrashReport,
std::string pluginName = it_r->first;
try
{
- std::string res;
-
if (g_pPluginManager->GetPluginType(pluginName) == REPORTER)
{
CReporter* reporter = g_pPluginManager->GetReporter(pluginName);
std::string home = "";
map_plugin_settings_t oldSettings;
map_plugin_settings_t newSettings;
+ std::string res;
if (pUID != "")
{
@@ -382,10 +381,11 @@ report_status_t Report(const map_crash_report_t& pCrashReport,
{
reporter->SetSettings(oldSettings);
}
+
+ ret[pluginName].push_back("1");
+ ret[pluginName].push_back(res);
+ message += res + "\n";
}
- ret[pluginName].push_back("1");
- ret[pluginName].push_back(res);
- message += res + "\n";
}
catch (CABRTException& e)
{