summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-01-12 16:30:40 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-01-12 16:30:40 +0100
commit223a6051757ac531d89c2a576da89b6b6f46ecf2 (patch)
treec23648a95bf86e2945b0fb52b677b5b5f5dc0ffb
parent745c2265e8e2c1c76288900811696478f0b04cfd (diff)
downloadabrt-223a6051757ac531d89c2a576da89b6b6f46ecf2.tar.gz
abrt-223a6051757ac531d89c2a576da89b6b6f46ecf2.tar.xz
abrt-223a6051757ac531d89c2a576da89b6b6f46ecf2.zip
src/Hooks/CCpp.cpp -> src/Hooks/abrt_hook_ccpp.cpp
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--lib/Plugins/Bugzilla.cpp4
-rw-r--r--src/Hooks/Makefile.am2
-rw-r--r--src/Hooks/abrt_hook_ccpp.cpp (renamed from src/Hooks/CCpp.cpp)2
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/Plugins/Bugzilla.cpp b/lib/Plugins/Bugzilla.cpp
index 2d065f6..14eb87f 100644
--- a/lib/Plugins/Bugzilla.cpp
+++ b/lib/Plugins/Bugzilla.cpp
@@ -82,8 +82,8 @@ bool ctx::check_cc_and_reporter(uint32_t bug_id, const char* login)
xmlrpc_value* result = NULL;
xmlrpc_client_call2(&env, m_pClient, m_pServer_info, "bugzilla.getBug", param, &result);
- throw_if_xml_fault_occurred(&env);
xmlrpc_DECREF(param);
+ throw_if_xml_fault_occurred(&env);
xmlrpc_value* reporter_member = NULL;
xmlrpc_struct_find_value(&env, result, "reporter", &reporter_member);
@@ -298,9 +298,9 @@ void ctx::add_attachments(const char* bug_id_str, const map_crash_report_t& pCra
throw_if_xml_fault_occurred(&env);
xmlrpc_client_call2(&env, m_pClient, m_pServer_info, "bugzilla.addAttachment", param, &result);
- throw_if_xml_fault_occurred(&env);
xmlrpc_DECREF(result);
xmlrpc_DECREF(param);
+ throw_if_xml_fault_occurred(&env);
}
}
}
diff --git a/src/Hooks/Makefile.am b/src/Hooks/Makefile.am
index ebabd87..d9c0fba 100644
--- a/src/Hooks/Makefile.am
+++ b/src/Hooks/Makefile.am
@@ -3,7 +3,7 @@ bin_PROGRAMS = dumpoops
# abrt-hook-ccpp
abrt_hook_ccpp_SOURCES = \
- CCpp.cpp \
+ abrt_hook_ccpp.cpp \
hooklib.h hooklib.cpp
abrt_hook_ccpp_CPPFLAGS = \
-I$(srcdir)/../../inc \
diff --git a/src/Hooks/CCpp.cpp b/src/Hooks/abrt_hook_ccpp.cpp
index 21fe0be..e417743 100644
--- a/src/Hooks/CCpp.cpp
+++ b/src/Hooks/abrt_hook_ccpp.cpp
@@ -1,5 +1,5 @@
/*
- CCpp.cpp - the hook for C/C++ crashing program
+ abrt_hook_ccpp.cpp - the hook for C/C++ crashing program
Copyright (C) 2009 Zdenek Prikryl (zprikryl@redhat.com)
Copyright (C) 2009 RedHat inc.