[pan2] quickfix for segfault in expand_headers



commit 1e98f02fa366829e6c96bef3bf36edae7a48ff52
Author: Heinrich MÃlller <henmull src gnome org>
Date:   Sun May 6 14:41:08 2012 +0200

    quickfix for segfault in expand_headers

 pan/usenet-utils/text-massager.cc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/pan/usenet-utils/text-massager.cc b/pan/usenet-utils/text-massager.cc
index f4b04cc..0a14053 100644
--- a/pan/usenet-utils/text-massager.cc
+++ b/pan/usenet-utils/text-massager.cc
@@ -565,6 +565,7 @@ pan :: expand_download_dir_subject (const char * dir, const char * subjectline,
 std::string
 pan :: expand_attachment_headers(const Quark& path, const Article& article)
 {
+  if (path.empty()) return std::string("");
   std::string val(path.c_str());
   std::string::size_type pos;
   std::string author_str (article.author.c_str());



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]