---
 src/lib/problem_data.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/lib/problem_data.c b/src/lib/problem_data.c
index 724a702..6618ae2 100644
--- a/src/lib/problem_data.c
+++ b/src/lib/problem_data.c
@@ -60,12 +60,19 @@ problem_data_t *problem_data_new(void)
 void problem_data_add_basics(problem_data_t *pd)
 {
     const char *analyzer = problem_data_get_content_or_NULL(pd, 
FILENAME_ANALYZER);
+    const char *type = problem_data_get_content_or_NULL(pd, FILENAME_TYPE);
     if (analyzer == NULL)
     {
         analyzer = "libreport";
+
+        if (type)
+            analyzer = type;
+
         problem_data_add_text_noteditable(pd, FILENAME_ANALYZER, analyzer);
     }
-    problem_data_add_text_noteditable(pd, FILENAME_TYPE, analyzer);
+
+    if (type == NULL)
+        problem_data_add_text_noteditable(pd, FILENAME_TYPE, analyzer);
 
     /* If application didn't provide dupe hash, we generate it
      * from all components, so we at least eliminate the exact same
-- 
1.8.1

Reply via email to