diff options
| author | Zdenek Prikryl <zprikryl@redhat.com> | 2009-06-24 10:00:58 +0200 |
|---|---|---|
| committer | Zdenek Prikryl <zprikryl@redhat.com> | 2009-06-24 10:00:58 +0200 |
| commit | 44b4926781e2e8751488f3ae18614aa1e63e1138 (patch) | |
| tree | 177b2c65d052c46c35bb37f52f93fc9a4e684df1 /lib/Plugins/Bugzilla.cpp | |
| parent | 41159650f5401908876548572bcd0c2615e14b18 (diff) | |
| download | abrt-44b4926781e2e8751488f3ae18614aa1e63e1138.tar.gz abrt-44b4926781e2e8751488f3ae18614aa1e63e1138.tar.xz abrt-44b4926781e2e8751488f3ae18614aa1e63e1138.zip | |
minor fixes
Diffstat (limited to 'lib/Plugins/Bugzilla.cpp')
| -rw-r--r-- | lib/Plugins/Bugzilla.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Plugins/Bugzilla.cpp b/lib/Plugins/Bugzilla.cpp index 80cbec45..6b5233a8 100644 --- a/lib/Plugins/Bugzilla.cpp +++ b/lib/Plugins/Bugzilla.cpp @@ -224,6 +224,10 @@ void CReporterBugzilla::AddAttachments(const std::string& pBugId, const map_cras if (it->second[CD_TYPE] == CD_ATT) { base64 = NSSBase64Encoder_Create(Base64Encode_cb, this); + if (!base64) + { + throw CABRTException(EXCEP_PLUGIN, "CReporterBugzilla::AddAttachemnt(): cannot initialize base64."); + } NSSBase64Encoder_Update(base64, reinterpret_cast<const unsigned char*>(it->second[CD_CONTENT].c_str()), it->second[CD_CONTENT].length()); |
