From e60c006499ec9a1604f85f84a98145535a7ad0a7 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 31 Jul 2009 15:13:38 +0200 Subject: Move PLUGIN_INFOs to .cpp files: same object must never be defined twice and if structure is defined in a .h file, that happens. Since this particular structure has non-trivial destructor, it was running twice and resulted in double-free. Signed-off-by: Denys Vlasenko --- lib/Plugins/RunApp.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'lib/Plugins/RunApp.cpp') diff --git a/lib/Plugins/RunApp.cpp b/lib/Plugins/RunApp.cpp index 9d996ee..8d37f11 100644 --- a/lib/Plugins/RunApp.cpp +++ b/lib/Plugins/RunApp.cpp @@ -86,5 +86,14 @@ void CActionRunApp::Run(const std::string& pActionDir, dd.SaveText(args[FILENAME], output); dd.Close(); } - } + +PLUGIN_INFO(ACTION, + CActionRunApp, + "RunApp", + "0.0.1", + "Simple action plugin which runs a command " + "and it can save command's output", + "zprikryl@redhat.com", + "https://fedorahosted.org/abrt/wiki", + ""); -- cgit