summaryrefslogtreecommitdiffstats
path: root/lib/Utils/make_descr.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-11-02 18:59:48 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-11-02 18:59:48 +0100
commit9abc01ff0cfa94f1fe8ee19bbb8c52ff735ef7fb (patch)
tree62a9a3b28ecdb4004b8612906b5377a4cd659e70 /lib/Utils/make_descr.cpp
parent03de6beb950543e8905cfa0b861ab926bd39fc35 (diff)
downloadabrt-9abc01ff0cfa94f1fe8ee19bbb8c52ff735ef7fb.tar.gz
abrt-9abc01ff0cfa94f1fe8ee19bbb8c52ff735ef7fb.tar.xz
abrt-9abc01ff0cfa94f1fe8ee19bbb8c52ff735ef7fb.zip
make_description_xxx: do not report empty fields
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Utils/make_descr.cpp')
-rw-r--r--lib/Utils/make_descr.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Utils/make_descr.cpp b/lib/Utils/make_descr.cpp
index ee372910..1352149e 100644
--- a/lib/Utils/make_descr.cpp
+++ b/lib/Utils/make_descr.cpp
@@ -16,6 +16,11 @@ static void add_content(bool &was_multiline, string& description, const char *he
if (strchr(content, '\n') == NULL)
{
+ if (skip_whitespace(content)[0] == '\0')
+ {
+ /* empty, dont report at all */
+ return;
+ }
/* one string value, like OS release */
description += header;
description += ": ";