07ee5fb
commit fcde1a65a0a283ed785cafa8a44ae219e1a79912
07ee5fb
Author: Nikola Pajkovsky <npajkovs@redhat.com>
07ee5fb
Date:   Wed Apr 7 17:47:32 2010 +0200
07ee5fb
07ee5fb
    add function name into summary(if it's found)
07ee5fb
    
07ee5fb
    Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
07ee5fb
07ee5fb
diff --git a/lib/Plugins/Bugzilla.cpp b/lib/Plugins/Bugzilla.cpp
07ee5fb
index e59e9a7..bffccc1 100644
07ee5fb
--- a/lib/Plugins/Bugzilla.cpp
07ee5fb
+++ b/lib/Plugins/Bugzilla.cpp
07ee5fb
@@ -352,8 +352,15 @@ xmlrpc_int32 ctx::new_bug(const map_crash_data_t& pCrashData)
07ee5fb
     const std::string& arch      = get_crash_data_item_content(pCrashData, FILENAME_ARCHITECTURE);
07ee5fb
     const std::string& duphash   = get_crash_data_item_content(pCrashData, CD_DUPHASH);
07ee5fb
     const char *reason           = get_crash_data_item_content_or_NULL(pCrashData, FILENAME_REASON);
07ee5fb
+    const char *function         = get_crash_data_item_content_or_NULL(pCrashData, FILENAME_CRASH_FUNCTION);
07ee5fb
 
07ee5fb
     std::string summary = "[abrt] crash in " + package;
07ee5fb
+    if (function != NULL && strlen(function) < 30)
07ee5fb
+    {
07ee5fb
+        summary += ": ";
07ee5fb
+        summary += function;
07ee5fb
+    }
07ee5fb
+
07ee5fb
     if (reason != NULL)
07ee5fb
     {
07ee5fb
         summary += ": ";